X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/fc9df968fc1403a2130e5774552c430b2c0acf59..edb68e839f4830e722bf187af7e77c9a248551a8:/test/integration/user_blocks_test.rb?ds=sidebyside diff --git a/test/integration/user_blocks_test.rb b/test/integration/user_blocks_test.rb index ecd1d37c5..7003d7692 100644 --- a/test/integration/user_blocks_test.rb +++ b/test/integration/user_blocks_test.rb @@ -38,11 +38,8 @@ class UserBlocksTest < ActionController::IntegrationTest # revoke the ban get '/login' - assert_response :redirect - assert_redirected_to "controller" => "user", "action" => "login", "cookie_test" => "true" - follow_redirect! assert_response :success - post '/login', {'user[email]' => moderator.email, 'user[password]' => "test", :referer => "/blocks/#{block.id}/revoke"} + post '/login', {'username' => moderator.email, 'password' => "test", :referer => "/blocks/#{block.id}/revoke"} assert_response :redirect follow_redirect! assert_response :success