X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b52fabef6d17d9a6e4afa821b768fb87bcbd71b6..73a60baf8ce92a63cbeec73bcccb4b70950a6591:/test/controllers/errors_controller_test.rb?ds=inline diff --git a/test/controllers/errors_controller_test.rb b/test/controllers/errors_controller_test.rb index 9f8ccee56..253cbbdc0 100644 --- a/test/controllers/errors_controller_test.rb +++ b/test/controllers/errors_controller_test.rb @@ -2,6 +2,10 @@ require "test_helper" class ErrorsControllerTest < ActionDispatch::IntegrationTest def test_routes + assert_routing( + { :path => "/400", :method => :get }, + { :controller => "errors", :action => "bad_request" } + ) assert_routing( { :path => "/403", :method => :get }, { :controller => "errors", :action => "forbidden" } @@ -16,6 +20,11 @@ class ErrorsControllerTest < ActionDispatch::IntegrationTest ) end + def test_bad_request + get "/400" + assert_response :bad_request + end + def test_forbidden get "/403" assert_response :forbidden