Sha256: 95b7eabc8ad04807c8db85372e816e8a08b55da00f1a9dd622b43165c4260074

Contents?: true

Size: 1.69 KB

Versions: 37

Compression:

Stored size: 1.69 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 docstring
    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
      end
      """
    When I run the feature with the progress formatter
    Then the output should contain:
      """
      Sturm and Lioville
      """

  Scenario: Use #step with docstring and content-type
    Given a step definition that looks like this:
      """ruby
      Given /two turtles/ do
        step %{turtles:}, doc_string('Sturm and Lioville','math')
      end
      """
    And a step definition that looks like this:
      """ruby
      Given /turtles:/ do |text|
        puts text.content_type
      end
      """
    When I run the feature with the progress formatter
    Then the output should contain:
      """
      math
      """

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
cucumber-2.0.2 features/docs/defining_steps/nested_steps_with_second_arg.feature
cucumber-2.0.1 features/docs/defining_steps/nested_steps_with_second_arg.feature
cucumber-1.3.20 features/nested_steps_with_second_arg.feature
cucumber-2.0.0 features/docs/defining_steps/nested_steps_with_second_arg.feature
cucumber-2.0.0.rc.5 features/docs/defining_steps/nested_steps_with_second_arg.feature
cucumber-1.3.19 features/nested_steps_with_second_arg.feature
cucumber-2.0.0.rc.4 features/docs/defining_steps/nested_steps_with_second_arg.feature
cucumber-2.0.0.rc.3 features/docs/defining_steps/nested_steps_with_second_arg.feature
cucumber-2.0.0.rc.2 features/docs/defining_steps/nested_steps_with_second_arg.feature
cucumber-2.0.0.rc.1 features/docs/defining_steps/nested_steps_with_second_arg.feature
cucumber-1.3.18 features/nested_steps_with_second_arg.feature
cucumber-2.0.0.beta.5 features/docs/defining_steps/nested_steps_with_second_arg.feature
cucumber-2.0.0.beta.4 features/docs/defining_steps/nested_steps_with_second_arg.feature
cucumber-2.0.0.beta.3 features/docs/defining_steps/nested_steps_with_second_arg.feature
cucumber-1.3.17 features/nested_steps_with_second_arg.feature
cucumber-2.0.0.beta.2 features/docs/defining_steps/nested_steps_with_second_arg.feature
cucumber-2.0.0.beta.1 features/docs/defining_steps/nested_steps_with_second_arg.feature
cucumber-1.3.16 features/nested_steps_with_second_arg.feature
cucumber-1.3.15 features/nested_steps_with_second_arg.feature
cucumber-1.3.14 features/nested_steps_with_second_arg.feature