Sha256: f8fd68c714f5e080b40a23fd331f55ce0e14a5b96bb3fbb07f7abef0f079f82c

Contents?: true

Size: 1.43 KB

Versions: 26

Compression:

Stored size: 1.43 KB

Contents

Feature: http://rspec.lighthouseapp.com/projects/16211/tickets/600-inconsistent-order-of-execution-background-and-before-in-070beta2

  Scenario: Background executed twice when scenario follows scenario outline
    Given a standard Cucumber project directory structure
    And a file named "features/t.feature" with:
      """
      Feature: test
        Background: 
          Given I am in the background

        Scenario Outline: test 1
          Given I am a step

          Examples:
            | a |
            | 1 |

        Scenario: test 2
      """
    And a file named "features/step_definitions/t_steps.rb" with:
      """
      Given "I am in the background" do
        puts "Within background"
      end

      Given "I am a step" do
        # no-op
      end
      """
    And a file named "features/support/env.rb" with:
      """
      module TestWorld
        def before_scenario
          puts "Before scenario"
        end

        def after_scenario
          puts "After scenario"
        end
      end

      World(TestWorld)

      Before do
        before_scenario
      end

      After do
        after_scenario
      end
      """
    When I run cucumber -f progress features/t.feature
    Then it should pass with
      """
      Before scenario
      Within background
      .--After scenario
      Before scenario
      Within background
      .After scenario


      2 scenarios (2 passed)
      3 steps (3 passed)

      """
      

Version data entries

26 entries across 26 versions & 3 rubygems

Version Path
cucumber-0.8.7 features/bug_600.feature
cucumber-0.10.3 legacy_features/bug_600.feature
cucumber-0.10.2 legacy_features/bug_600.feature
cucumber-0.10.1 legacy_features/bug_600.feature
stefl-cucumber-0.10.1 legacy_features/bug_600.feature
vim-jar-0.1.2.0001 bundler/ruby/1.8/gems/cucumber-0.9.4/features/bug_600.feature
vim-jar-0.1.2 bundler/ruby/1.8/gems/cucumber-0.9.4/features/bug_600.feature
vim-jar-0.1.1 bundler/ruby/1.8/gems/cucumber-0.9.4/features/bug_600.feature
vim-jar-0.1.0 bundler/ruby/1.8/gems/cucumber-0.9.4/features/bug_600.feature
cucumber-0.10.0 legacy_features/bug_600.feature
cucumber-0.9.4 features/bug_600.feature
cucumber-0.9.3 features/bug_600.feature
cucumber-0.9.2 features/bug_600.feature
cucumber-0.9.1 features/bug_600.feature
cucumber-0.9.0 features/bug_600.feature
cucumber-0.8.5 features/bug_600.feature
cucumber-0.8.4 features/bug_600.feature
cucumber-0.8.3 features/bug_600.feature
cucumber-0.8.2 features/bug_600.feature
cucumber-0.8.1 features/bug_600.feature