[rspec-users] Rails Rendering diagnostics.rhtml in Controller Spec

Ryan Bates bates.ryan at gmail.com
Wed May 23 19:20:38 EDT 2007

> I'm not in love w/ exactly that - but something like that. Any suggestions?

Maybe call it "override_controller_rescue_action!" and have it default
to that block?

Spec::Runner.configure do |config|

A block could then be optionally passed to change its behavior if you
don't want to simply raise the exception. You may also want to have it
alias the old rescue_action method in case someone wants to call it?

Whatever the case, I do think there should be an easy way to do this
and maybe mention something in the comments in the config file. I
imagine the majority of Rails projects would want to set this?


More information about the rspec-users mailing list