Sha256: 5357c423acc05c281c7488db0d20860bb089d1bd47229ec56215de4a76cdcaf4

Contents?: true

Size: 1.38 KB

Versions: 100

Compression:

Stored size: 1.38 KB

Contents

Feature: Table diffing
  In order to more easily compare data in tables
  step definition writers should be able to diff
  a table with expected data and see the diff inline
  
  Scenario: Extra row
    Given a standard Cucumber project directory structure
    And a file named "features/tables.feature" with:
      """
      Feature: Tables
        Scenario: Extra row
          Then the table should be:
            | x | y |
            | a | b |
      """
    And a file named "features/step_definitions/table_steps.rb" with:
      """
      Then /the table should be:/ do |expected| x=1
        expected.diff!(table(%{
          | x | y | 
          | a | c |
        }))
      end
      """
    When I run cucumber -i features/tables.feature
    Then it should fail with
      """
      Feature: Tables
      
        Scenario: Extra row         # features/tables.feature:2
          Then the table should be: # features/step_definitions/table_steps.rb:1
            | x | y |
            | a | b |
            | a | c |
            Tables were not identical (Cucumber::Ast::Table::Different)
            ./features/step_definitions/table_steps.rb:2:in `/the table should be:/'
            features/tables.feature:3:in `Then the table should be:'
      
      Failing Scenarios:
      cucumber features/tables.feature:2 # Scenario: Extra row

      1 scenario (1 failed)
      1 step (1 failed)

      """

Version data entries

100 entries across 98 versions & 11 rubygems

Version Path
cucumber-1.3.20 legacy_features/table_diffing.feature
cucumber-1.3.19 legacy_features/table_diffing.feature
cucumber-1.3.18 legacy_features/table_diffing.feature
cucumber-1.3.17 legacy_features/table_diffing.feature
cucumber-1.3.16 legacy_features/table_diffing.feature
cucumber-1.3.15 legacy_features/table_diffing.feature
cucumber-1.3.14 legacy_features/table_diffing.feature
cucumber-1.3.13 legacy_features/table_diffing.feature
cucumber-1.3.12 legacy_features/table_diffing.feature
cucumber-1.3.11 legacy_features/table_diffing.feature
cucumber-1.3.10 legacy_features/table_diffing.feature
cucumber-1.3.9 legacy_features/table_diffing.feature
candlepin-api-0.4.0 bundle/ruby/1.8/gems/cucumber-1.2.1/legacy_features/table_diffing.feature
candlepin-api-0.4.0 bundle/ruby/gems/cucumber-1.2.1/legacy_features/table_diffing.feature
candlepin-api-0.4.0 bundle/ruby/1.9.1/gems/cucumber-1.2.1/legacy_features/table_diffing.feature
cucumber-1.3.8 legacy_features/table_diffing.feature
cucumber-1.3.7 legacy_features/table_diffing.feature
cucumber-1.3.6 legacy_features/table_diffing.feature
cucumber-1.3.5 legacy_features/table_diffing.feature
cucumber-1.3.4 legacy_features/table_diffing.feature