Sto provando in questi giorni ad utilizzare Cucumber e Rspec per seguire
un tutorial di un’applicazione Rails (bddcasts.com)
Dopo aver sbattuto un pò con autospec e le notifiche growl, mi rimane un
punto oscuro che non riesco a risolvere.
quando un test di RSpec fallisce mi ritrovo un output così:
1)
ActionController::UnknownAction in ‘BrandsController handling GET new
should build an empty brand and assign it for the view’
No action responded to new. Actions: index
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/filters.rb:617:in
call_filters' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/filters.rb:610:in
perform_action_without_benchmark’
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/benchmarking.rb:68:in
perform_action_without_rescue' /Library/Ruby/Gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/benchmark.rb:17:in
ms’
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/benchmark.rb:17:in
ms' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/benchmarking.rb:68:in
perform_action_without_rescue’
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/rescue.rb:160:in
perform_action_without_flash' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/flash.rb:146:in
perform_action’
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:532:in
send' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:532:in
process_without_filters’
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/filters.rb:606:in
sass_old_process' /Library/Ruby/Gems/1.8/gems/haml-2.2.23/rails/../lib/sass/plugin/rails.rb:20:in
process’
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/test_process.rb:567:in
process_with_test' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/test_process.rb:447:in
process’
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/test_process.rb:398:in
get' /Users/robertoalicata/development/brandizzle/spec/controllers/brands_controller_spec.rb:33:in
do_get’
/Users/robertoalicata/development/brandizzle/spec/controllers/brands_controller_spec.rb:38:
Finished in 0.049325 seconds
4 examples, 1 failure, 1 pending
nel tutorial (video) invece vedo che tutte le linee che iniziano per
“/Library/Ruby/Gems/1.8/gems” non ci sono.
E’ un problema di rubygem? c’è da settare qualcosa?
la mia configurazione attuale è:
ruby 1.8.7 (2009-06-08 patchlevel 173) [universal-darwin10.0]
Rails 2.3.5
*** LOCAL GEMS ***
actionmailer (2.3.5, 2.2.2, 1.3.6)
actionpack (2.3.5, 2.2.2, 1.13.6)
actionwebservice (1.2.6)
activerecord (2.3.5, 2.2.2, 1.15.6)
activeresource (2.3.5, 2.2.2)
activesupport (2.3.5, 2.2.2, 1.4.4)
acts_as_ferret (0.4.4, 0.4.3)
autotest (4.2.9)
autotest-growl (0.2.3)
autotest-notification (2.2.1)
autotest-rails (4.1.0)
builder (2.1.2)
capistrano (2.5.18, 2.5.2)
cgi_multipart_eof_fix (2.5.0)
compass (0.8.17)
cucumber (0.6.4)
cucumber-rails (0.3.0)
daemons (1.0.10)
database_cleaner (0.5.2, 0.5.1)
diff-lcs (1.1.2)
dnssd (1.3.1, 0.6.0)
factory_girl (1.2.4)
fastthread (1.0.7, 1.0.1)
fcgi (0.8.8, 0.8.7)
ferret (0.11.6)
gem_plugin (0.2.3)
haml (2.2.23, 2.2.22)
highline (1.5.2, 1.5.0)
hpricot (0.8.2, 0.6.164)
json_pure (1.2.4, 1.2.3)
libxml-ruby (1.1.3, 1.1.2)
mongrel (1.1.5)
needle (1.3.0)
net-scp (1.0.2, 1.0.1)
net-sftp (2.0.4, 2.0.1, 1.1.1)
net-ssh (2.0.21, 2.0.4, 1.1.4)
net-ssh-gateway (1.0.1, 1.0.0)
nokogiri (1.4.1)
polyglot (0.3.1)
prawn (0.8.4)
prawn-core (0.8.4)
prawn-layout (0.8.4)
prawn-security (0.8.4)
rack (1.1.0, 1.0.1)
rack-test (0.5.3)
rails (2.3.5, 2.2.2, 1.2.6)
rake (0.8.7, 0.8.3)
rcov (0.9.8)
RedCloth (4.2.3, 4.1.1)
redgreen (1.2.2)
rspec (1.3.0)
rspec-rails (1.3.2)
ruby-openid (2.1.7, 2.1.2)
ruby-yadis (0.3.4)
rubygems-update (1.3.6)
rubynode (0.1.5)
sqlite3-ruby (1.2.5, 1.2.4)
term-ansicolor (1.0.5)
termios (0.9.4)
treetop (1.4.5)
webrat (0.7.0)
xmpp4r (0.5, 0.4)
ZenTest (4.3.1)
Grazie in anticipo alle anime pie che mi aiuteranno