Sha256: 899b0b8d35d7dfae6567c9663dfb9bfa86ceddfd65fd594311436a893f117032

Contents?: true

Size: 676 Bytes

Versions: 9

Compression:

Stored size: 676 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

9 entries across 9 versions & 1 rubygems

Version Path
rspec-core-2.0.0.beta.8 features/hooks/halt.feature
rspec-core-2.0.0.beta.7 features/hooks/halt.feature
rspec-core-2.0.0.beta.6 features/hooks/halt.feature
rspec-core-2.0.0.beta.5 features/hooks/halt.feature
rspec-core-2.0.0.beta.4 features/hooks/halt.feature
rspec-core-2.0.0.beta.3 features/hooks/halt.feature
rspec-core-2.0.0.beta.2 features/hooks/halt.feature
rspec-core-2.0.0.beta.1 features/hooks/halt.feature
rspec-core-2.0.0.a10 features/hooks/halt.feature