Hola Estoy tratando de usar las macros de shoulda x ej: should_redirect_to should_set_the_flash_to etc y no logro hacerlas funcionar. Seguí el proceso normal de instalación:
en environment.rb config.gem 'thoughtbot-shoulda', :source => "http://gems.github.com", :lib => 'shoulda', :version => '>= 2.0.6', :environment => :test luego sudo rake gems:install sudo rake gems:unpack pero cuando corro los testeos recibo: 1) Error: test_create_without_plan(TicketsControllerTest): NoMethodError: undefined method `should_set_the_flash_to' for #<TicketsControllerTest:0xb5f6b6c4> /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/test_process.rb:471:in `method_missing' test/functional/tickets_controller_test.rb:35:in `test_create_without_plan' /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/testing/setup_and_teardown.rb:94:in `__send__' /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/testing/setup_and_teardown.rb:94:in `run' Alguien tuvo problemas de este tipo? ------ Dwayne Macgowan www.dwayne.com.ar
_______________________________________________ Ruby mailing list [email protected] http://lista.rubyargentina.com.ar/listinfo.cgi/ruby-rubyargentina.com.ar
