]> git.openstreetmap.org Git - rails.git/blobdiff - test/integration/user_roles_test.rb
Update get/post etc to remove use of deprecated syntax
[rails.git] / test / integration / user_roles_test.rb
index c2f065e0e869556d70d29806a5f2f205febea3fc..3f6c242488e73136b63b5ff8a461cc367d98d8c4 100644 (file)
@@ -26,7 +26,7 @@ class UserRolesTest < ActionDispatch::IntegrationTest
     assert_redirected_to "controller" => "user", "action" => "login", "cookie_test" => "true"
     follow_redirect!
     assert_response :success
-    post "/login", "username" => create(user).email, "password" => "test", :referer => "/"
+    post "/login", :params => { "username" => create(user).email, "password" => "test", :referer => "/" }
     assert_response :redirect
     follow_redirect!
     assert_response :success
@@ -44,7 +44,7 @@ class UserRolesTest < ActionDispatch::IntegrationTest
     assert_redirected_to "controller" => "user", "action" => "login", "cookie_test" => "true"
     follow_redirect!
     assert_response :success
-    post "/login", "username" => create(user).email, "password" => "test", :referer => "/"
+    post "/login", :params => { "username" => create(user).email, "password" => "test", :referer => "/" }
     assert_response :redirect
     follow_redirect!
     assert_response :success