Sha256: af7d4654a0eb875d326ccfbe5c9b2b1fbce72fc5ddfec7e5cf5f533341da7590

Contents?: true

Size: 1.39 KB

Versions: 2

Compression:

Stored size: 1.39 KB

Contents

Feature: ActiveCucumber.create_many

  As a Cucumber user
  I want to create database records using Cucumber tables
  So that I can easily and intuitively set up my test environment.


  Scenario: creating string columns
    When running "ActiveCucumber.create_many Episode, table" with this table:
      | NAME                  |
      | Encounter at Farpoint |
      | All Good Things       |
    Then the database contains the given episodes


  Scenario: creating integer columns
    When running "ActiveCucumber.create_many Episode, table" with this table:
      | YEAR |
      | 1987 |
      | 1994 |
    Then the database contains the given episodes


  Scenario: creating associated objects
    When running "ActiveCucumber.create_many Episode, table" with this table:
      | SHOW          | NAME                  |
      | Star Trek TNG | Encounter at Farpoint |
      | Star Trek TNG | All Good Things       |
    Then the database contains the given episodes
    And the database contains the show "Star Trek TNG"


  Scenario: complex example
    When running "ActiveCucumber.create_many Episode, table" with this table:
      | SHOW          | NAME                  | YEAR |
      | Star Trek TNG | Encounter at Farpoint | 1987 |
      | Star Trek TOS | The Paradise Syndrome | 1994 |
    Then the database contains the given episodes
    And the database contains the shows "Star Trek TNG" and "Star Trek TOS"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
active_cucumber-0.0.3 features/active_cucumber/create_many.feature
active_cucumber-0.0.2 features/active_cucumber/create_many.feature