Skip to content

Commit

Permalink
integration tests: fix comments / spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanlarsen committed Dec 13, 2012
1 parent 808d956 commit 6384110
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ class CreateAccountTest < ActionDispatch::IntegrationTest
click_button "Add"
assert has_content?("The Task was created successfully")

# test sortable-collection
find("ul.tasks li:last .ordering-handle").drag_to(find("ul.tasks li:first .ordering-handle"))
sleep 1
visit page.current_path
Expand Down Expand Up @@ -184,8 +185,5 @@ class CreateAccountTest < ActionDispatch::IntegrationTest
find("input.delete-project-membership-button").click
page.driver.browser.switch_to.alert.accept
assert find("ul.memberships").has_no_text?("Second User")

# TODO: test sortable-collection

end
end
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ class CreateAccountTest < ActionDispatch::IntegrationTest
click_button "Add"
assert has_content?("The Task was created successfully")

# test sortable-collection
find("ul.tasks li:last .ordering-handle").drag_to(find("ul.tasks li:first .ordering-handle"))
sleep 1
visit page.current_path
Expand Down Expand Up @@ -185,8 +186,5 @@ class CreateAccountTest < ActionDispatch::IntegrationTest
find("input.delete-project-membership-button").click
page.driver.browser.switch_to.alert.accept
assert find("ul.memberships").has_no_text?("Second User")

# TODO: test sortable-collection

end
end
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def wait_for_updates_to_finish
fill_in "query", :with => "First"
find("input[name=query]").native.send_key(:enter)
assert has_content?("Search Results")
assert find("#search-results-box").has_content?("First Project")
assert find("#search-results-box").has_content?("First Project")
assert find("#search-results-box").has_content?("First Story")

end
Expand Down

0 comments on commit 6384110

Please sign in to comment.