Sha256: 6b5f4e191639b34817b132bb498b59a30c769c59665e0c82dc9e60e8b8dd6946

Contents?: true

Size: 1.25 KB

Versions: 31

Compression:

Stored size: 1.25 KB

Contents

Feature: Nested Steps


  Background:
    Given a scenario with a step that looks like this:
      """gherkin
      Given two turtles
      """
    And a step definition that looks like this:
      """ruby
      Given /a turtle/ do
        puts "turtle!"
      end
      """

  Scenario: Use #steps to call several steps at once
    Given a step definition that looks like this:
      """ruby
      Given /two turtles/ do
        steps %{
          Given a turtle
          And a turtle
        }
      end
      """
    When I run the feature with the progress formatter
    Then the output should contain:
      """
      turtle!

      turtle!

      """

  Scenario: Use #step to call a single step
    Given a step definition that looks like this:
      """ruby
      Given /two turtles/ do
        step "a turtle"
        step "a turtle"
      end
      """
    When I run the feature with the progress formatter
    Then the output should contain:
      """
      turtle!

      turtle!

      """

  Scenario: Use deprecated i18n methods
    Given a step definition that looks like this:
      """ruby
      Given /two turtles/ do
        Given "a turtle"
      end
      """
    When I run the feature with the progress formatter
    Then the output should contain "WARNING"

Version data entries

31 entries across 29 versions & 8 rubygems

Version Path
candlepin-api-0.4.0 bundle/ruby/1.8/gems/cucumber-1.2.1/features/nested_steps.feature
candlepin-api-0.4.0 bundle/ruby/gems/cucumber-1.2.1/features/nested_steps.feature
candlepin-api-0.4.0 bundle/ruby/1.9.1/gems/cucumber-1.2.1/features/nested_steps.feature
librarian-puppet-0.9.9 vendor/gems/ruby/1.9.1/gems/cucumber-1.2.1/features/nested_steps.feature
cucumber-1.2.5 features/nested_steps.feature
cucumber-1.2.3 features/nested_steps.feature
cucumber-1.2.2 features/nested_steps.feature
librarian-puppet-0.9.8 vendor/gems/ruby/1.9.1/gems/cucumber-1.2.1/features/nested_steps.feature
librarian-puppet-0.9.4 vendor/gems/ruby/1.8/gems/cucumber-1.2.1/features/nested_steps.feature
casecumber-1.2.1.cb2 features/nested_steps.feature
librarian-puppet-0.9.3 vendor/gems/ruby/1.8/gems/cucumber-1.2.1/features/nested_steps.feature
cucumber-1.2.1 features/nested_steps.feature
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/features/nested_steps.feature
ftl-0.2.0 vendor/bundle/gems/cucumber-1.2.0/features/nested_steps.feature
cucumber-1.2.0 features/nested_steps.feature
frameworks-capybara-0.2.0.rc6 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/features/nested_steps.feature
frameworks-capybara-0.2.0.rc5 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/features/nested_steps.feature
frameworks-capybara-0.2.0.rc4 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/features/nested_steps.feature
frameworks-capybara-0.2.0.rc3 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/features/nested_steps.feature
frameworks-capybara-0.2.0.rc2 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/features/nested_steps.feature