# 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
end
# We should get an error if no user is specified
- assert_raise ActionController::RoutingError do
+ assert_raise ActionController::UrlGenerationError do
get :edit
end
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
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
# 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
# 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