Sha256: 55b61d247cb571ee79de8bdd3ac6bad390d834e61ac85d82b7dbe4f7e11da3d1

Contents?: true

Size: 1.5 KB

Versions: 39

Compression:

Stored size: 1.5 KB

Contents

Feature: New record

  Scenario: saving a has_many children document
    Given an empty Contact document collection
    And a Contact document named 'hashrocket' :
      | Name       |
      | Hashrocket |
    And 'hashrocket' has many addresses :
      | Street                 | City               | State | Zip Code |
      | 320 First Street North | Jacksonville Beach | FL    | 32250    |
      | 1 Main Street          | Santiago           | Chile |          |
    When I save the document 'hashrocket'
    Then the first address of 'hashrocket' is not a new record

  Scenario: saving a has_one child document
    Given an empty Place document collection
    And a Place document named 'hashrocket' :
      | Name       |
      | Hashrocket |
    And 'hashrocket' has one Address as address :
      | Street                 | City               | State | Zip Code |
      | 320 First Street North | Jacksonville Beach | FL    | 32250    |
    When I save the document 'hashrocket'
    Then the address of 'hashrocket' is not a new record

  Scenario: id is roundtripped when saving a has_one child document
    Given an empty Place document collection
    And a Place document named 'hashrocket' :
      | Name       |
      | Hashrocket |
    And 'hashrocket' has one Address as address :
      | Street                 | City               | State | Zip Code |
      | 320 First Street North | Jacksonville Beach | FL    | 32250    |
    When I save the document 'hashrocket'
    Then the address of 'hashrocket' roundtrips

Version data entries

39 entries across 39 versions & 3 rubygems

Version Path
mongo_doc-0.6.26 features/new_record.feature
mongo_doc-0.6.25 features/new_record.feature
mongo_doc-0.6.23 features/new_record.feature
mongo_doc-0.6.22 features/new_record.feature
mongo_doc-0.6.21 features/new_record.feature
mongo_doc-0.6.20 features/new_record.feature
mongo_doc-0.6.19 features/new_record.feature
mongo_doc-0.6.18 features/new_record.feature
mongo_doc-0.6.17 features/new_record.feature
mongo_doc-0.6.16 features/new_record.feature
mongo_doc-0.6.15 features/new_record.feature
mongo_doc-0.6.14 features/new_record.feature
mongo_doc-0.6.13 features/new_record.feature
mongo_doc-0.6.12 features/new_record.feature
mongo_doc-0.6.11 features/new_record.feature
mongo_doc-0.6.10 features/new_record.feature
mongo_doc-0.6.9 features/new_record.feature
mongo_doc-0.6.8 features/new_record.feature
mongo_doc-0.6.7 features/new_record.feature
mongo_doc-0.6.6 features/new_record.feature