end
# Check that the user can successfully recover their password
- def test_lost_password_recovery_success
- # Open the lost password form
- # Submit the lost password form
- # Check the e-mail
- # Submit the reset password token
- # Check that the password has changed, and the user can login
- end
+ # def test_lost_password_recovery_success
+ # Open the lost password form
+ # Submit the lost password form
+ # Check the e-mail
+ # Submit the reset password token
+ # Check that the password has changed, and the user can login
+ # end
def test_user_create_redirect
new_email = "redirect_tester@osm.org"
create_visible_changeset(user, "next-changeset")
end
- visit "#{user_path(user)}/history"
- changesets = find "div.changesets"
- changesets.assert_text "bottom-changeset-in-batch-1"
- changesets.assert_no_text "bottom-changeset-in-batch-2"
- changesets.assert_no_text "first-changeset-in-history"
- changesets.assert_selector "ol", :count => 1
- changesets.assert_selector "li", :count => PAGE_SIZE
-
- changesets.find(".changeset_more a.btn").click
- changesets.assert_text "bottom-changeset-in-batch-1"
- changesets.assert_text "bottom-changeset-in-batch-2"
- changesets.assert_no_text "first-changeset-in-history"
- changesets.assert_selector "ol", :count => 1
- changesets.assert_selector "li", :count => 2 * PAGE_SIZE
-
- changesets.find(".changeset_more a.btn").click
- changesets.assert_text "bottom-changeset-in-batch-1"
- changesets.assert_text "bottom-changeset-in-batch-2"
- changesets.assert_text "first-changeset-in-history"
- changesets.assert_selector "ol", :count => 1
- changesets.assert_selector "li", :count => (2 * PAGE_SIZE) + 1
+ assert_nothing_raised do
+ visit "#{user_path(user)}/history"
+ changesets = find "div.changesets"
+ changesets.assert_text "bottom-changeset-in-batch-1"
+ changesets.assert_no_text "bottom-changeset-in-batch-2"
+ changesets.assert_no_text "first-changeset-in-history"
+ changesets.assert_selector "ol", :count => 1
+ changesets.assert_selector "li", :count => PAGE_SIZE
+
+ changesets.find(".changeset_more a.btn").click
+ changesets.assert_text "bottom-changeset-in-batch-1"
+ changesets.assert_text "bottom-changeset-in-batch-2"
+ changesets.assert_no_text "first-changeset-in-history"
+ changesets.assert_selector "ol", :count => 1
+ changesets.assert_selector "li", :count => 2 * PAGE_SIZE
+
+ changesets.find(".changeset_more a.btn").click
+ changesets.assert_text "bottom-changeset-in-batch-1"
+ changesets.assert_text "bottom-changeset-in-batch-2"
+ changesets.assert_text "first-changeset-in-history"
+ changesets.assert_selector "ol", :count => 1
+ changesets.assert_selector "li", :count => (2 * PAGE_SIZE) + 1
+ end
end
def create_visible_changeset(user, comment)