]> 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 ecd1d37c5204fe0cc87acee8dcc3d31fa3bd415a..7003d769251c2a97dbe0578a35bf627e60255c41 100644 (file)
@@ -38,11 +38,8 @@ class UserBlocksTest < ActionController::IntegrationTest
 
     # revoke the ban
     get '/login'
 
     # revoke the ban
     get '/login'
-    assert_response :redirect
-    assert_redirected_to "controller" => "user", "action" => "login", "cookie_test" => "true"
-    follow_redirect!
     assert_response :success
     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
     assert_response :redirect
     follow_redirect!
     assert_response :success