Sha256: 7eb306e1f1761d666882798ff84f6431822ddc4b70c2d7fcbee236a71e8f844e

Contents?: true

Size: 971 Bytes

Versions: 22

Compression:

Stored size: 971 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:/ do |table|
        table.map_headers!(/who/i => 'Who')
        table.map_column!('Who') { |who| "Cuke" }
        table.hashes[0]['Who'] = "Joe"
        table.hashes.should == [{"Who"=>"Joe"}]
      end
      """
    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

22 entries across 22 versions & 5 rubygems

Version Path
davidtrogers-cucumber-0.6.2 features/table_mapping.feature
cucumber-0.6.2 features/table_mapping.feature
cucumber-0.6.1 features/table_mapping.feature
cucumber-0.6.0 features/table_mapping.feature
cucumber-0.5.3 features/table_mapping.feature
cucumber-0.5.2 features/table_mapping.feature
cucumber-0.5.1 features/table_mapping.feature
cucumber-0.5.0 features/table_mapping.feature
cucumber-0.4.5.rc2 features/table_mapping.feature
kbaum-cucumber-0.4.5.pre features/table_mapping.feature
cucumber-0.4.5.rc1 features/table_mapping.feature
middleman-0.10.17 vendor/gems/gems/cucumber-0.4.4/features/table_mapping.feature
middleman-0.10.16 vendor/gems/gems/cucumber-0.4.4/features/table_mapping.feature
middleman-0.10.15 vendor/gems/gems/cucumber-0.4.4/features/table_mapping.feature
rackjour-0.1.8 vendor/gems/gems/cucumber-0.4.4/features/table_mapping.feature
middleman-0.10.14 vendor/gems/gems/cucumber-0.4.4/features/table_mapping.feature
cucumber-0.4.4 features/table_mapping.feature
cucumber-0.4.3 features/table_mapping.feature
cucumber-0.4.2 features/table_mapping.feature
cucumber-0.4.1 features/table_mapping.feature