Sha256: 2558dbbe2e581bd77a7cd3119e7cb74df044de4059d81e1868aff3c6d3b4bbc6
Contents?: true
Size: 687 Bytes
Versions: 4
Compression:
Stored size: 687 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 the stdout should match "1 example, 1 failure"
Version data entries
4 entries across 4 versions & 1 rubygems