]> git.openstreetmap.org Git - rails.git/blobdiff - test/integration/user_blocks_test.rb
Rework expansion of HTTP status code to work with rails 3
[rails.git] / test / integration / user_blocks_test.rb
index f0b9070d6d2a0d3c50eb09dd2283cfc7cc7733ff..7003d769251c2a97dbe0578a35bf627e60255c41 100644 (file)
@@ -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