Sha256: 235ca30d6443e67fc870e940841ab82531b852698986eba2733a2f0b3f3494e5

Contents?: true

Size: 1.48 KB

Versions: 65

Compression:

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

65 entries across 63 versions & 9 rubygems

Version Path
cucumber-1.3.20 legacy_features/bug_600.feature
cucumber-1.3.19 legacy_features/bug_600.feature
cucumber-1.3.18 legacy_features/bug_600.feature
cucumber-1.3.17 legacy_features/bug_600.feature
cucumber-1.3.16 legacy_features/bug_600.feature
cucumber-1.3.15 legacy_features/bug_600.feature
cucumber-1.3.14 legacy_features/bug_600.feature
cucumber-1.3.13 legacy_features/bug_600.feature
cucumber-1.3.12 legacy_features/bug_600.feature
cucumber-1.3.11 legacy_features/bug_600.feature
cucumber-1.3.10 legacy_features/bug_600.feature
cucumber-1.3.9 legacy_features/bug_600.feature
candlepin-api-0.4.0 bundle/ruby/gems/cucumber-1.2.1/legacy_features/bug_600.feature
candlepin-api-0.4.0 bundle/ruby/1.8/gems/cucumber-1.2.1/legacy_features/bug_600.feature
candlepin-api-0.4.0 bundle/ruby/1.9.1/gems/cucumber-1.2.1/legacy_features/bug_600.feature
cucumber-1.3.8 legacy_features/bug_600.feature
cucumber-1.3.7 legacy_features/bug_600.feature
cucumber-1.3.6 legacy_features/bug_600.feature
cucumber-1.3.5 legacy_features/bug_600.feature
cucumber-1.3.4 legacy_features/bug_600.feature