[rspec-users] Terminate on first failure?

Peter Nost lists at ruby-forum.com
Wed Feb 10 09:21:11 EST 2010


David Chelimsky wrote:
> # purely hypothetical code - do not try this at home
> Rspec::Core.configure do |c|
>   c.after(:each) do
>     if running_example.metadata[:status] == 'failed'
>       running_example.example_group.break
>     end
>   end
> end
> 
> Coming soon, but not quite yet.

Very cool.

Thanks,
Pete
-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list