Sha256: 96b209dd1bc70c5e64f53bed2741c8fec657e526b24fe2abde24533f9b761bac

Contents?: true

Size: 955 Bytes

Versions: 12

Compression:

Stored size: 955 Bytes

Contents

Feature: Table mapping
  Scenario: Mapping table shouldn't change output
    Given a standard Cucumber project directory structure
    And a file named "features/f.feature" with:
      """
      Feature: F
        Scenario: S
          Given a table:
            | who   |
            | aslak |
      """
    And a file named "features/step_definitions/steps.rb" with:
      """
      Given(/a table:/) { |table| table.map_headers!(/who/i => 'Who')
        table.map_column!('Who') { |who| "Cuke" }
        table.hashes[0]['Who'] = "Joe"
        table.hashes.should == [{"Who"=>"Joe"}]
      }
      """
    When I run cucumber features/f.feature
    Then STDERR should be empty
    And it should pass with
      """
      Feature: F

        Scenario: S      # features/f.feature:2
          Given a table: # features/step_definitions/steps.rb:1
            | who   |
            | aslak |

      1 scenario (1 passed)
      1 step (1 passed)

      """

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
cucumber-1.3.20 legacy_features/table_mapping.feature
cucumber-1.3.19 legacy_features/table_mapping.feature
cucumber-1.3.18 legacy_features/table_mapping.feature
cucumber-1.3.17 legacy_features/table_mapping.feature
cucumber-1.3.16 legacy_features/table_mapping.feature
cucumber-1.3.15 legacy_features/table_mapping.feature
cucumber-1.3.14 legacy_features/table_mapping.feature
cucumber-1.3.13 legacy_features/table_mapping.feature
cucumber-1.3.12 legacy_features/table_mapping.feature
cucumber-1.3.11 legacy_features/table_mapping.feature
cucumber-1.3.10 legacy_features/table_mapping.feature
cucumber-1.3.9 legacy_features/table_mapping.feature