Sha256: 75a859cb56a7f9e019cf91a735f53e93fd85ef9de699ced04e2cbb50592c2fd0

Contents?: true

Size: 1.23 KB

Versions: 12

Compression:

Stored size: 1.23 KB

Contents

Feature: Nested Steps with either table or doc string

  Background:
    Given a scenario with a step that looks like this:
      """gherkin
      Given two turtles
      """

  Scenario: Use #step with table
    Given a step definition that looks like this:
      """ruby
      Given /turtles:/ do |table|
        table.hashes.each do |row|
          puts row[:name]
        end
      end
      """
    And a step definition that looks like this:
      """ruby
      Given /two turtles/ do
        step %{turtles:}, table(%{
        | name      |
        | Sturm     |
        | Liouville |
        })
      end
      """
    When I run the feature with the progress formatter
    Then the output should contain:
      """
      Sturm

      Liouville

      """

  Scenario: Use #step with Doc String
    Given a step definition that looks like this:
      """ruby
      Given /two turtles/ do
        step %{turtles:}, "Sturm and Lioville"
      end
      """
    And a step definition that looks like this:
      """ruby
      Given /turtles:/ do |text|
        puts "#{text}:#{text.class}"
      end
      """
    When I run the feature with the progress formatter
    Then the output should contain:
      """
      Sturm and Lioville:String
      """

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
cucumber-2.99.0 features/docs/defining_steps/nested_steps_with_second_arg.feature
mobiusloop-0.1.5 features/docs/defining_steps/nested_steps_with_second_arg.feature
cucumber-3.0.0.pre.1 features/docs/defining_steps/nested_steps_with_second_arg.feature
cucumber-2.4.0 features/docs/defining_steps/nested_steps_with_second_arg.feature
mobiusloop-0.1.3 features/docs/defining_steps/nested_steps_with_second_arg.feature
mobiusloop-0.1.2 features/docs/defining_steps/nested_steps_with_second_arg.feature
cucumber-2.3.3 features/docs/defining_steps/nested_steps_with_second_arg.feature
cucumber-2.3.2 features/docs/defining_steps/nested_steps_with_second_arg.feature
cucumber-2.3.1 features/docs/defining_steps/nested_steps_with_second_arg.feature
cucumber-2.3.0 features/docs/defining_steps/nested_steps_with_second_arg.feature
cucumber-2.2.0 features/docs/defining_steps/nested_steps_with_second_arg.feature
cucumber-2.1.0 features/docs/defining_steps/nested_steps_with_second_arg.feature