Feature: Finders Background: Given an empty Contact document collection And a Contact document named 'hashrocket' : | Name | Type | | Hashrocket | company | And 'hashrocket' has interests, an array of: | Interest | | ruby | | rails | | employment | | contract work | | restaurants | | hotels | | flights | | car rentals | And 'hashrocket' has many addresses : | Street | City | State | Zip Code | | 320 First Street North | Jacksonville Beach | FL | 32250 | | 1 Lake Michigan Street | Chicago | IL | 60611 | | 1 Main Street | Santiago | Chile | | And I save the document 'hashrocket' And a Contact document named 'rocketeer' : | Name | | Rocketeer Mike | And 'rocketeer' has interests, an array of: | Interest | | ruby | | rails | | restaurants | | employment | And 'rocketeer' has many addresses : | Street | City | State | Zip Code | | 1 Main Street | Atlantic Beach | FL | 32233 | And I save the document 'rocketeer' And a Contact document named 'contractor' : | Name | | Contractor Joe | And 'contractor' has interests, an array of: | Interest | | ruby | | rails | | contract work | | flights | | car rentals | | hotels | | restaurants | And 'contractor' has many addresses : | Street | City | State | Zip Code | | 1 Main St. | Jacksonville | FL | 32218 | And I save the document 'contractor' Scenario: All When I query contacts with all Then the query result has 3 documents Scenario: Count When I query contacts with count Then the query result was 3 documents Scenario: First When I query contacts with first Then the query result is the document 'hashrocket' Scenario: Last When I query contacts with last Then the query result is the document 'contractor' Scenario: Find One When I query contacts to find_one with the id of the 'contractor' document Then the query result is the document 'contractor'