[rspec-users] Rails HTML error page in the console.

Ben Mabey ben at benmabey.com
Wed May 13 11:13:42 EDT 2009

Matt Wynne wrote:
> I'm still bugged by the fact that when I get an exception during a 
> feature run (e.g. Couldn't find partial) then what I see in the 
> console is all the HTML to report that error in a browser.
> I have had a few ideas for this bubbling around at the back of my 
> mind. I wondered whether anyone else was thinking about this too.
> I guess the idea would be to patch rails's 
> ActionController#rescue_action_locally with something that threw the 
> exception out at Cucumber rather than bubbling it up to the web. What 
> do you think? Would it work? What are the drawbacks I haven't thought of?
> cheers,
> Matt Wynne
> http://beta.songkick.com
> http://blog.mattwynne.net

Have you tried catching the error in an After block and opening up the 
page?  Aslak added that functionality:



More information about the rspec-users mailing list