Sha256: 5170738dd69a4384a792bda1f10f4271fae5f0feac4676a72f2e5989848e9737

Contents?: true

Size: 1.71 KB

Versions: 6

Compression:

Stored size: 1.71 KB

Contents

Feature: ActiveCucumber.diff_one!

  As a Cucumber user
  I want to verify a single record using a detailed Cucumber table
  So that I can easily and intuitively check individual database entries.


  Background:
    Given the episode:
      | SHOW | Star Trek TNG   |
      | NAME | All Good Things |
      | YEAR | 1994            |


  Scenario: verifying string fields
    When running "ActiveCucumber.diff_one! @created_episode, table" with this table:
      | NAME | All Good Things |
    Then the test passes


  Scenario: verifying non-string fields
    When running "ActiveCucumber.diff_one! @created_episode, table" with this table:
      | YEAR | 1994            |
    Then the test passes


  Scenario: verifying associated fields
    When running "ActiveCucumber.diff_one! @created_episode, table" with this table:
      | SHOW | Star Trek TNG   |
      | NAME | All Good Things |
    Then the test passes


  Scenario: complete table match
    When running "ActiveCucumber.diff_one! @created_episode, table" with this table:
      | SHOW | Star Trek TNG   |
      | NAME | All Good Things |
      | YEAR | 1994            |
    Then the test passes


  Scenario: providing a non-existing field
    When running "ActiveCucumber.diff_one! @created_episode, table" with this table:
      | NAME   | All Good Things |
      | FOOBAR | 1994            |
    Then the test fails
    And Cucumparer prints the error message "undefined method.*foobar"


  Scenario: mismatching data in a table cell
    When running "ActiveCucumber.diff_one! @created_episode, table" with this table:
      | SHOW | Star Trek TOS   |
      | NAME | All Good Things |
    Then the test fails
    And Cucumparer prints the error message "Tables were not identical"

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
active_cucumber-0.0.9 features/active_cucumber/diff_one.feature
active_cucumber-0.0.8 features/active_cucumber/diff_one.feature
active_cucumber-0.0.7 features/active_cucumber/diff_one.feature
active_cucumber-0.0.6 features/active_cucumber/diff_one.feature
active_cucumber-0.0.5 features/active_cucumber/diff_one.feature
active_cucumber-0.0.4 features/active_cucumber/diff_one.feature