Sha256: 470239c236139b257dba2f5889cd3914ef388041e69e43034257f3ead49f5bc0

Contents?: true

Size: 961 Bytes

Versions: 86

Compression:

Stored size: 961 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

86 entries across 84 versions & 11 rubygems

Version Path
cucumber-1.1.0 legacy_features/table_mapping.feature
cucumber-1.0.6 legacy_features/table_mapping.feature
cucumber-1.0.5 legacy_features/table_mapping.feature
cucumber-1.0.4 legacy_features/table_mapping.feature
cucumber-1.0.3 legacy_features/table_mapping.feature
cucumber-1.0.2 legacy_features/table_mapping.feature
cucumber-1.0.1 legacy_features/table_mapping.feature
cucumber-1.0.0 legacy_features/table_mapping.feature
cucumber-0.8.7 features/table_mapping.feature
cucumber-0.10.7 legacy_features/table_mapping.feature
cucumber-0.10.6 legacy_features/table_mapping.feature
cucumber-0.10.5 legacy_features/table_mapping.feature
cucumber-0.10.3 legacy_features/table_mapping.feature
cucumber-0.10.2 legacy_features/table_mapping.feature
cucumber-0.10.1 legacy_features/table_mapping.feature
stefl-cucumber-0.10.1 legacy_features/table_mapping.feature
vim-jar-0.1.2.0001 bundler/ruby/1.8/gems/cucumber-0.9.4/features/table_mapping.feature
vim-jar-0.1.2 bundler/ruby/1.8/gems/cucumber-0.9.4/features/table_mapping.feature
vim-jar-0.1.1 bundler/ruby/1.8/gems/cucumber-0.9.4/features/table_mapping.feature
vim-jar-0.1.0 bundler/ruby/1.8/gems/cucumber-0.9.4/features/table_mapping.feature