Permalink
Browse files

Generalize multiple detailed objects feature

  • Loading branch information...
1 parent ed65fe0 commit 9265c09fcc3e939629fa9f314e6c11786b2e0af8 @paulelliott committed Mar 2, 2012
@@ -17,17 +17,6 @@ Feature: Active Record Objects
| North | Widgets Inc |
Then they should reference that company
- Scenario: multiple detailed objects
- Given the following divisions:
- | name |
- | Red Squadron |
- | Yellow Squadron |
- Then I should see 2 divisions in the database
- And I should see the following division in the database:
- | name | Red Squadron |
- And I should see the following division in the database:
- | name | Yellow Squadron |
-
Scenario: a parented single generic object
Given 1 company
And that company has 1 division
@@ -7,17 +7,6 @@ Feature: Mongoid Objects
And I should see the following publishing house in the database:
| name | Random House |
- Scenario: multiple detailed objects
- Given the following authors:
- | name |
- | Dr. Seuss |
- | Shel Silverstein |
- Then I should see 2 authors in the database
- And I should see the following author in the database:
- | name | Dr. Seuss |
- And I should see the following author in the database:
- | name | Shel Silverstein |
-
Scenario: a parented single detailed object
Given 1 author
And that author has the following book:
@@ -0,0 +1,18 @@
+Feature: Multiple Detailed Objects
+
+ Scenario Outline: multiple detailed objects
+ Given the following <fabricator name>s:
+ | string field |
+ | content1 |
+ | content2 |
+ Then I should see 2 <fabricator name>s in the database
+ And I should see the following <fabricator name> in the database:
+ | string_field | content1 |
+ And I should see the following <fabricator name> in the database:
+ | string_field | content2 |
+
+ Scenarios:
+ | fabricator name |
+ | parent active record model |
+ | parent mongoid document |
+ | parent sequel model |

0 comments on commit 9265c09

Please sign in to comment.