X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/dc4cc8d21967d74b1fb229e37afb9ea4dcaf3e99..d9ba5ff31fd8d5b59b1c52b561166e64bb7cf880:/test/integration/user_terms_seen_test.rb diff --git a/test/integration/user_terms_seen_test.rb b/test/integration/user_terms_seen_test.rb index 63f7f627a..eac5daf24 100644 --- a/test/integration/user_terms_seen_test.rb +++ b/test/integration/user_terms_seen_test.rb @@ -31,7 +31,7 @@ class UserTermsSeenTest < ActionController::IntegrationTest get_via_redirect "/login" assert_response :success assert_template 'user/login' - post "/login", {'user[email]' => user.email, 'user[password]' => 'test', :referer => "/"} + post "/login", {'username' => user.email, 'password' => 'test', :referer => "/"} assert_response :redirect # but now we need to look at the terms assert_redirected_to "controller" => "user", "action" => "terms", :referer => "/" @@ -57,7 +57,7 @@ class UserTermsSeenTest < ActionController::IntegrationTest get_via_redirect "/login" assert_response :success assert_template 'user/login' - post "/login", {'user[email]' => user.email, 'user[password]' => 'test', :referer => "/"} + post "/login", {'username' => user.email, 'password' => 'test', :referer => "/"} assert_response :redirect # but now we need to look at the terms assert_redirected_to "controller" => "user", "action" => "terms", :referer => "/" @@ -70,7 +70,4 @@ class UserTermsSeenTest < ActionController::IntegrationTest assert_redirected_to "controller" => "user", "action" => "terms", :referer => "/traces/mine" end end - end - -