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

2009-04-02 Thread aidy lewis
Hi Tim, I have used a custom formatter, if this is any help class ExceptionFormatter Cucumber::Ast::Visitor def initialize(step_mother, io, options) super(step_mother) end def visit_feature_name(name) if name =~ /Feature:\s(.*)/i @name = $1 else @name = name

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

2009-04-02 Thread Ben Mabey
aslak hellesoy wrote: 2009/4/2 Tim Harper timchar...@gmail.com mailto:timchar...@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.

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

2009-04-02 Thread Tim Harper
Aidy, This is a great work around, being disadvantaged only by having to specify a different formatter :) Still, a general purpose way of hooking in to the after feature fail would be premium. Thanks for opening the ticket. Tim On Thu, Apr 2, 2009 at 10:31 AM, aidy lewis

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

2009-04-01 Thread Tim Harper
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. Thanks :) Tim ___ rspec-users mailing list rspec-users@rubyforge.org

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

2009-04-01 Thread aslak hellesoy
2009/4/2 Tim Harper timchar...@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