]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/errors_controller_test.rb
Merge remote-tracking branch 'upstream/pull/4753'
[rails.git] / test / controllers / errors_controller_test.rb
index 01b07efc89a998eaf5ddd2cf69e2e8fd75182d2f..9f8ccee56d66acc34b147625b643af81698df178 100644 (file)
@@ -1,6 +1,6 @@
 require "test_helper"
 
-class ErrorsControllerTest < ActionController::TestCase
+class ErrorsControllerTest < ActionDispatch::IntegrationTest
   def test_routes
     assert_routing(
       { :path => "/403", :method => :get },
@@ -17,17 +17,17 @@ class ErrorsControllerTest < ActionController::TestCase
   end
 
   def test_forbidden
-    get :forbidden
+    get "/403"
     assert_response :forbidden
   end
 
   def test_not_found
-    get :not_found
+    get "/404"
     assert_response :not_found
   end
 
   def test_internal_server_error
-    get :internal_server_error
+    get "/500"
     assert_response :internal_server_error
   end
 end