X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1e3b3c1f10213c48a40083e8bbca1429d9f819d6..f0d7c4a8d6373faa02ed941452ef904ee43ec447:/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 f0b9070d6..7003d7692 100644 --- a/test/integration/user_blocks_test.rb +++ b/test/integration/user_blocks_test.rb @@ -37,7 +37,9 @@ class UserBlocksTest < ActionController::IntegrationTest assert_response :forbidden # revoke the ban - post '/login', {'user[email]' => moderator.email, 'user[password]' => "test", :referer => "/blocks/#{block.id}/revoke"} + get '/login' + assert_response :success + post '/login', {'username' => moderator.email, 'password' => "test", :referer => "/blocks/#{block.id}/revoke"} assert_response :redirect follow_redirect! assert_response :success