Skip to content

Commit

Permalink
all cucumber tests fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ingridh committed Apr 18, 2015
1 parent b4960fc commit d960c42
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
Binary file modified coursequestionbank_test
Binary file not shown.
8 changes: 2 additions & 6 deletions features/collections.feature
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,8 @@ Feature: collections that we can add problems to

Scenario: add a new question to current collection
When I create a new collection 'yolo' and mark it as current
And I add problem containing 'Raffi' to the collection 'yolo'
Then I should see 'Raffi' within the collection 'yolo'

Scenario: use the dropdown to add a question to non-current collection:
When I create a new collection 'yolo'
Then I add the problem containing text 'Raffi' to 'yolo'
And I add problem containing 'Raffi' to collection 'yolo'
Then I should see 'Raffi' with in the collection 'yolo'

Scenario: upload same file twice
Given I am on the upload page
Expand Down
8 changes: 8 additions & 0 deletions features/step_definitions/web_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@ def with_scope(locator)
end


Then /^(?:|I )should see '(.*)' with in the collection '(.*)'/ do |problem_text, collection|
collection = Collection.find_by_name(collection).id
visit edit_collection_path(:id => collection)
steps %Q{
Then I should see "#{problem_text}"
}
end




Expand Down
1 change: 0 additions & 1 deletion sunspot-solr.pid

This file was deleted.

0 comments on commit d960c42

Please sign in to comment.