re-write tests for the (reverse) has_many features (#164)

This commit is contained in:
did 2011-08-14 14:07:15 -07:00
parent 8d30ba5152
commit 3ad8101ed6
2 changed files with 10 additions and 19 deletions

View File

@ -43,9 +43,11 @@ Scenario: I add a project to a client
When I press "Save"
And I wait until the has many selector is visible
Then I should see "Fun project" within the list of added items
And I should not see "Empty" within the list of items
When I go to the "Clients" model list page
And I follow "Beta, Inc"
And I wait until the has many selector is visible
Then I should see "Fun project" within the list of added items
And I should not see "Empty" within the list of items
And "Fun project" should not be an option for "label"
#
# And I should not see "Empty" within the list of items
# When I go to the "Clients" model list page
# And I follow "Beta, Inc"
# And I wait until the has many selector is visible
# Then I should see "Fun project" within the list of added items
# And I should not see "Empty" within the list of items

View File

@ -44,12 +44,6 @@ Scenario: I attach already created items for an existing parent and save it
When I press "Save"
And I wait until the has many selector is visible
Then "My sexy project" should not be an option for "label"
When I go to the "Clients" model list page
And I follow "Apple Inc"
And I wait until the has many selector is visible
Then "My sexy project" should not be an option for "label"
And I should not see "Empty" within the list of items
@javascript
Scenario: I create a new item and attach it
@ -65,8 +59,3 @@ Scenario: I create a new item and attach it
When I wait until the has many selector is visible
Then I should see "iPad"
And "iPad" should not be an option for "label"
When I go to the "Clients" model list page
And I follow "Apple Inc"
And I wait until the has many selector is visible
Then "iPad" should not be an option for "label"
And I should not see "Empty" within the list of items