Displaying 2 results from an estimated 2 matches for "setup_with_controller".
2006 Oct 26
0
rescue_action overridden
In rspec_on_rails, method setup_with_controller, exists the following
line:
@controller_class.send(:define_method, :rescue_action) { |
e| raise e }
I understand that this is a better way to handle errors than the
default. However, it gets in the way when you''ve defined your own
rescue_action and are trying to test i...
2010 Mar 22
5
UnitTesting-Action view testcase is failed
...lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_view/test_case.rb:104:in
`include_helper_modules!''
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_view/test_case.rb:59:in
`send''
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_view/test_case.rb:59:in
`setup_with_controller''
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/callbacks.rb:178:in
`send''
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/callbacks.rb:178:in
`evaluate_method''
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/ac...