[Rspec-users] rescue_action overridden

Micah Martin micah at 8thlight.com
Thu Oct 26 13:15:43 EDT 2006

In rspec_on_rails, method setup_with_controller, exists the following  

           @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 it.

No good solutions came to me while I pondered the problem.  Anyhow,  
there it is.

Micah Martin
8th Light, Inc.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20061026/76a06f28/attachment.html 

More information about the Rspec-users mailing list