Sha256: 822fd51f985bca40fc20a23611678011ed473fadd8f5035e2a33b0d467a18fbd
Contents?: true
Size: 647 Bytes
Versions: 3
Compression:
Stored size: 647 Bytes
Contents
Feature: halt In an example, before or after 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 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.15 | features/hooks/halt.feature |
rspec-core-2.0.0.beta.14 | features/hooks/halt.feature |
rspec-core-2.0.0.beta.13 | features/hooks/halt.feature |