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.5 features/new_record.feature
mongo_doc-0.6.4 features/new_record.feature
mongo_doc_rails2-0.6.2 features/new_record.feature
mongo_doc-0.6.3 features/new_record.feature
mongo_doc-0.6.2 features/new_record.feature
mongo_doc-0.6.1 features/new_record.feature
mongo_doc-0.6.0 features/new_record.feature
mongo_doc_rails2-0.6.1 features/new_record.feature
mongo_doc-0.5.5 features/new_record.feature
mongo_doc-0.4.2 features/new_record.feature
mongo_doc-0.4.1 features/new_record.feature
mongo_doc-0.4.0 features/new_record.feature
mongo_doc-0.3.2 features/new_record.feature
mongo_doc-0.3.1 features/new_record.feature
mongo_doc-0.3.0 features/new_record.feature
mongodoc-0.2.4 features/new_record.feature
mongodoc-0.2.2 features/new_record.feature
mongodoc-0.2.1 features/new_record.feature
mongodoc-0.2.0 features/new_record.feature