]> git.openstreetmap.org Git - rails.git/blobdiff - test/integration/user_blocks_test.rb
Improve the UI of the /user/forgot-password page
[rails.git] / test / integration / user_blocks_test.rb
index f0b9070d6d2a0d3c50eb09dd2283cfc7cc7733ff..ecd1d37c5204fe0cc87acee8dcc3d31fa3bd415a 100644 (file)
@@ -37,6 +37,11 @@ class UserBlocksTest < ActionController::IntegrationTest
     assert_response :forbidden
 
     # 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"}
     assert_response :redirect
     follow_redirect!