Sha256: dd5a263048ff29d3967514e82a0cd8e5083097dcc4f30ad12ca71b52d19314cf

Contents?: true

Size: 1.05 KB

Versions: 4

Compression:

Stored size: 1.05 KB

Contents

Feature: Verifying only certain columns

  As a developer working only on a subset of database columns
  I want to specify only those columns in my tests
  So that my specs are concise, noise free, and to the point.

  Rules:
  - tables given to `diff_all!` can contain only a subset of the existing columns
  - only the given columns are verified against the database content


  Background:
    Given the episodes:
      | SHOW          | NAME                  | YEAR |
      | Star Trek TNG | Encounter at Farpoint | 1987 |
      | Star Trek TNG | All Good Things       | 1994 |


  Scenario: verifying all columns
    When running "ActiveCucumber.diff_all! Episode, table" with this table:
      | SHOW          | NAME                  | YEAR |
      | Star Trek TNG | Encounter at Farpoint | 1987 |
      | Star Trek TNG | All Good Things       | 1994 |
    Then the test passes


  Scenario: verifying a subset of columns
    When running "ActiveCucumber.diff_all! Episode, table" with this table:
      | YEAR |
      | 1987 |
      | 1994 |
    Then the test passes

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
active_cucumber-1.0.0 features/active_cucumber/diff_all/filtering_columns.feature
active_cucumber-0.2.1 features/active_cucumber/diff_all/filtering_columns.feature
active_cucumber-0.2.0 features/active_cucumber/diff_all/filtering_columns.feature
active_cucumber-0.1.0 features/active_cucumber/diff_all/filtering_columns.feature