[rspec-users] [Cucumber] after feature hook?

Joseph Wilk josephwilk at joesniff.co.uk
Mon Jan 5 09:02:31 EST 2009

aidy lewis wrote:
> Hi,
> Is there a hook or a method to execute some code after a whole feature
> has run or will I need to embed that in a 'Then'?
There are currently no before/after feature hooks.


Also if you want something to happen before/after everything you can use 
World and at_exit respectively.

Joseph Wilk

> Regards
> Aidy
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users

More information about the rspec-users mailing list