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
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/legacy_features/table_mapping.feature
ftl-0.2.0 vendor/bundle/gems/cucumber-1.2.0/legacy_features/table_mapping.feature
cucumber-1.2.0 legacy_features/table_mapping.feature
frameworks-capybara-0.2.0.rc6 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/legacy_features/table_mapping.feature
frameworks-capybara-0.2.0.rc5 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/legacy_features/table_mapping.feature
frameworks-capybara-0.2.0.rc4 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/legacy_features/table_mapping.feature
frameworks-capybara-0.2.0.rc3 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/legacy_features/table_mapping.feature
frameworks-capybara-0.2.0.rc2 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/legacy_features/table_mapping.feature
resque-pool-0.3.0.beta.2 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/legacy_features/table_mapping.feature
radiant-1.0.0 ruby-debug/ruby/1.8/gems/cucumber-1.1.9/legacy_features/table_mapping.feature
cucumber-1.1.9 legacy_features/table_mapping.feature
cucumber-1.1.8 legacy_features/table_mapping.feature
cucumber-1.1.7 legacy_features/table_mapping.feature
cucumber-1.1.6 legacy_features/table_mapping.feature
cucumber-1.1.5 legacy_features/table_mapping.feature
cucumber-1.1.4 legacy_features/table_mapping.feature
cucumber-1.1.3 legacy_features/table_mapping.feature
cucumber-1.1.2 legacy_features/table_mapping.feature
cucumber-1.1.1 legacy_features/table_mapping.feature
js-log-cucumber-1.0.2 legacy_features/table_mapping.feature