Sha256: 392ab225a8e6ffcf2796873d04c83073d9420b00c70a9f19bd8c21a5547b7085

Contents?: true

Size: 660 Bytes

Versions: 20

Compression:

Stored size: 660 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 the output should contain "1 example, 1 failure"

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
rspec-core-2.0.1 features/hooks/halt.feature
gemrage-1.0.0 vendor/ruby/1.8/gems/rspec-core-2.0.0/features/hooks/halt.feature
gemrage-0.4.1 vendor/ruby/1.8/gems/rspec-core-2.0.0/features/hooks/halt.feature
gemrage-0.4.0 vendor/ruby/1.8/gems/rspec-core-2.0.0/features/hooks/halt.feature
gemrage-0.3.2 vendor/ruby/1.8/gems/rspec-core-2.0.0/features/hooks/halt.feature
gemrage-0.3.1 vendor/ruby/1.8/gems/rspec-core-2.0.0/features/hooks/halt.feature
gemrage-0.3.0 vendor/ruby/1.8/gems/rspec-core-2.0.0/features/hooks/halt.feature
gemrage-0.2.0 vendor/ruby/1.8/gems/rspec-core-2.0.0/features/hooks/halt.feature
gemrage-0.1.2 vendor/ruby/1.8/gems/rspec-core-2.0.0/features/hooks/halt.feature
gemrage-0.1.1 vendor/ruby/1.8/gems/rspec-core-2.0.0/features/hooks/halt.feature
gemrage-0.1.0 vendor/ruby/1.8/gems/rspec-core-2.0.0/features/hooks/halt.feature
gemrage-0.0.0 vendor/ruby/1.8/gems/rspec-core-2.0.0/features/hooks/halt.feature
rspec-core-2.0.0 features/hooks/halt.feature
rspec-core-2.0.0.rc features/hooks/halt.feature
rspec-core-2.0.0.beta.22 features/hooks/halt.feature
rspec-core-2.0.0.beta.20 features/hooks/halt.feature
rspec-core-2.0.0.beta.19 features/hooks/halt.feature
rspec-core-2.0.0.beta.18 features/hooks/halt.feature
rspec-core-2.0.0.beta.17 features/hooks/halt.feature
rspec-core-2.0.0.beta.16 features/hooks/halt.feature