Permalink
Browse files

Merge pull request #801 from CristinaRO/cukes-work-collection-names

Cukes work collection names
  • Loading branch information...
2 parents f7163b9 + 2cb7a01 commit d8479f0b1c7547dc57d89136943c831b73793860 @elzj elzj committed Aug 15, 2012
@@ -28,7 +28,7 @@ Scenario: Create a collection, post a work to it
And I go to first_user's user page
Then I should see "collect-y work"
When I edit the work "collect-y work"
- And I fill in "work_collection_names" with "collection_thing"
+ And I fill in "work_collections_to_add" with "collection_thing"
And I press "Preview"
And I press "Update"
Then I should see "collect-y work"
@@ -193,7 +193,7 @@
end
Then /^the collection item autocomplete field should list matching collections$/ do
- fill_in("work_collection_names", :with => "gre")
+ fill_in("work_collections_to_add", :with => "gre")
Then %{I should see "great" in the autocomplete}
And %{I should see "really great" in the autocomplete}
And %{I should not see "awesome" in the autocomplete}
@@ -235,11 +235,11 @@ Feature: Create Works
And I press "Preview"
Then I should see "Brevity is the soul of wit, but your content does have to be at least 10 characters long."
When I fill in "content" with "Text and some longer text"
- And I fill in "work_collection_names" with "collection1, collection2"
+ And I fill in "work_collections_to_add" with "collection1, collection2"
And I press "Preview"
Then I should see a save error message
- And I should see "We couldn't find the collections named collection1 and collection2"
- When I fill in "work_collection_names" with ""
+ And I should see "We couldn't find the collection collection1"
+ When I fill in "work_collections_to_add" with ""
And I fill in "Additional Tags" with "this is a very long tag more than one hundred characters in length how would this normally even be created"
And I press "Preview"
Then I should see "try using less than 100 characters or using commas to separate your tags"
@@ -88,7 +88,7 @@ Feature: Delete Works
And I select "Pseud2" from "work_author_attributes_ids_"
And I select "Pseud3" from "work_author_attributes_ids_"
And I fill in "pseud_byline" with "coauthor"
- And I fill in "work_collection_names" with "collection1, collection2"
+ And I fill in "work_collections_to_add" with "collection1, collection2"
And I press "Preview"
Then I should see "Preview"
When I press "Post"

0 comments on commit d8479f0

Please sign in to comment.