[rspec-users] [cucumber] How to add a after failure hook?

Ben Mabey ben at benmabey.com
Thu Apr 2 13:38:53 EDT 2009


aslak hellesoy wrote:
>
>
> 2009/4/2 Tim Harper <timcharper at gmail.com <mailto:timcharper at gmail.com>>
>
>     Is currently a way to add a upon failure hook?  I'd like to make
>     it so that, in the event of a failed assertion, Webrat will take
>     the last requested page and open it in a browser.
>
>
> http://wiki.github.com/aslakhellesoy/cucumber/hooks
> |After do |scenario|
>   # currently no simple way to query scenario for status though :-(
> end
> |
> Please open a ticket for this if you really need it.
>
> Aslak


Convo has been moved to LH:

https://rspec.lighthouseapp.com/projects/16211-cucumber/tickets/272-pick-up-failure-on-after-hook#ticket-272-2

-Ben
>  
>
>
>     Thanks :)
>
>     Tim
>
>     _______________________________________________
>     rspec-users mailing list
>     rspec-users at rubyforge.org <mailto:rspec-users at rubyforge.org>
>     http://rubyforge.org/mailman/listinfo/rspec-users
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users



More information about the rspec-users mailing list