]> git.openstreetmap.org Git - rails.git/blobdiff - test/integration/user_changeset_comments_test.rb
Enable image compression utils for image_optim
[rails.git] / test / integration / user_changeset_comments_test.rb
index bedb1c69f39a398313d08a4c1fcb3eccc7249088..6030304697ff193a3fd4b276c4aabcde92256dc7 100644 (file)
@@ -24,12 +24,13 @@ class UserChangesetCommentsTest < ActionDispatch::IntegrationTest
     user = create(:user)
     changeset = create(:changeset, :closed)
 
-    get_via_redirect "/login"
+    get "/login"
+    follow_redirect!
     # We should now be at the login page
     assert_response :success
     assert_template "user/login"
     # We can now login
-    post "/login", "username" => user.email, "password" => "test"
+    post "/login", :params => { "username" => user.email, "password" => "test" }
     assert_response :redirect
 
     get "/changeset/#{changeset.id}"