Sha256: bef832bc9e6c7b874fb71fc3093a5256c0742e3f25b53f86821d2a4622b87cf8

Contents?: true

Size: 1002 Bytes

Versions: 16

Compression:

Stored size: 1002 Bytes

Contents

Feature: References

  Background:
    Given an empty Person document collection
    And a Person document named 'Fry' :
      | Name          |
      | Philip J. Fry |
    And an empty Address document collection
    And an Address document named 'office' :
      | City              |
      | New New York City |
    And an Address document named 'old_office' :
      | City          |
      | New York City |

  Scenario: Automatically dereferences in references association
    When I save the document 'office'
    And 'Fry' references 'office' as 'address'
    And I save the document 'Fry'
    And the document 'Fry' is reloaded
    Then 'Fry' refers to 'office' as 'address'

  Scenario: Automatically dereferences in references_many association
    When I save the document 'old_office'
    And 'Fry' references 'old_office' through 'previous_addresses'
    And I save the document 'Fry'
    And the document 'Fry' is reloaded
    Then 'Fry' has 'previous_addresses' that include 'old_office'

Version data entries

16 entries across 16 versions & 1 rubygems

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