X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/0d3a9ed9cb47ce3b89ea9eaffbb589f9a9ff6d22..d359cd70f1527b372b71c2f927e3f45fb0fcf509:/test/functional/user_blocks_controller_test.rb?ds=sidebyside diff --git a/test/functional/user_blocks_controller_test.rb b/test/functional/user_blocks_controller_test.rb index 297245929..39ebfd28e 100644 --- a/test/functional/user_blocks_controller_test.rb +++ b/test/functional/user_blocks_controller_test.rb @@ -76,7 +76,7 @@ class UserBlocksControllerTest < ActionController::TestCase # test the show action def test_show # Viewing a block should fail when no ID is given - assert_raise ActionController::RoutingError do + assert_raise ActionController::UrlGenerationError do get :show end @@ -184,7 +184,7 @@ class UserBlocksControllerTest < ActionController::TestCase end # We should get an error if no user is specified - assert_raise ActionController::RoutingError do + assert_raise ActionController::UrlGenerationError do get :edit end @@ -311,7 +311,7 @@ class UserBlocksControllerTest < ActionController::TestCase assert_equal "Vandalism", b.reason # We should get an error if no block ID is specified - assert_raise ActionController::RoutingError do + assert_raise ActionController::UrlGenerationError do put :update end @@ -358,7 +358,7 @@ class UserBlocksControllerTest < ActionController::TestCase assert_in_delta Time.now, b.ends_at, 1 # We should get an error if no block ID is specified - assert_raise ActionController::RoutingError do + assert_raise ActionController::UrlGenerationError do get :revoke end @@ -373,7 +373,7 @@ class UserBlocksControllerTest < ActionController::TestCase # test the blocks_on action def test_blocks_on # Asking for a list of blocks with no user name should fail - assert_raise ActionController::RoutingError do + assert_raise ActionController::UrlGenerationError do get :blocks_on end @@ -411,7 +411,7 @@ class UserBlocksControllerTest < ActionController::TestCase # test the blocks_by action def test_blocks_by # Asking for a list of blocks with no user name should fail - assert_raise ActionController::RoutingError do + assert_raise ActionController::UrlGenerationError do get :blocks_by end