Sha256: e12e2cf0a446edb0088477e486981289756d13b1d1930d1458693851c7e7712e
Contents?: true
Size: 678 Bytes
Versions: 3
Compression:
Stored size: 678 Bytes
Contents
Feature: halt In an example, before hook, after hook, or around hook, you can halt the current example, group, or suite based on arbitrary criteria. @wip Scenario: halt group on failure Given a directory named "spec" And a file named "spec/example_spec.rb" with: """ RSpec.configure do |c| c.after(:each) do running_example.halt(:group, :status => 'failed') end end describe "something" do it "fails" do fail end it "does not run this example" do end end """ When I run "rspec ./spec/example_spec.rb" Then I should see "1 example, 1 failure"
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rspec-core-2.0.0.beta.11 | features/hooks/halt.feature |
rspec-core-2.0.0.beta.10 | features/hooks/halt.feature |
rspec-core-2.0.0.beta.9 | features/hooks/halt.feature |