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
frameworks-capybara-0.2.0.rc3 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/legacy_features/bug_600.feature
frameworks-capybara-0.2.0.rc2 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/legacy_features/bug_600.feature
resque-pool-0.3.0.beta.2 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/legacy_features/bug_600.feature
radiant-1.0.0 ruby-debug/ruby/1.8/gems/cucumber-1.1.9/legacy_features/bug_600.feature
cucumber-1.1.9 legacy_features/bug_600.feature
cucumber-1.1.8 legacy_features/bug_600.feature
cucumber-1.1.7 legacy_features/bug_600.feature
cucumber-1.1.6 legacy_features/bug_600.feature
cucumber-1.1.5 legacy_features/bug_600.feature
cucumber-1.1.4 legacy_features/bug_600.feature
cucumber-1.1.3 legacy_features/bug_600.feature
cucumber-1.1.2 legacy_features/bug_600.feature
cucumber-1.1.1 legacy_features/bug_600.feature
js-log-cucumber-1.0.2 legacy_features/bug_600.feature
cucumber-1.1.0 legacy_features/bug_600.feature
cucumber-1.0.6 legacy_features/bug_600.feature
cucumber-1.0.5 legacy_features/bug_600.feature
cucumber-1.0.4 legacy_features/bug_600.feature
cucumber-1.0.3 legacy_features/bug_600.feature
cucumber-1.0.2 legacy_features/bug_600.feature