X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/eb0f9ff63d5ad5d91ea941420e094dd2980df094..79276fb43abc429cd5515f81005281e303a16dd8:/test/integration/user_roles_test.rb?ds=sidebyside diff --git a/test/integration/user_roles_test.rb b/test/integration/user_roles_test.rb index 0691edc8e..8bf06374f 100644 --- a/test/integration/user_roles_test.rb +++ b/test/integration/user_roles_test.rb @@ -22,7 +22,7 @@ class UserRolesControllerTest < ActionController::IntegrationTest assert_redirected_to "controller" => "user", "action" => "login", "cookie_test" => "true" follow_redirect! assert_response :success - post '/login', {'user[email]' => users(user).email, 'user[password]' => "test", :referer => "/"} + post '/login', {'username' => users(user).email, 'password' => "test", :referer => "/"} assert_response :redirect follow_redirect! assert_response :success @@ -40,7 +40,7 @@ class UserRolesControllerTest < ActionController::IntegrationTest assert_redirected_to "controller" => "user", "action" => "login", "cookie_test" => "true" follow_redirect! assert_response :success - post '/login', {'user[email]' => users(user).email, 'user[password]' => "test", :referer => "/"} + post '/login', {'username' => users(user).email, 'password' => "test", :referer => "/"} assert_response :redirect follow_redirect! assert_response :success