1 # frozen_string_literal: true
 
   5 class ErrorsControllerTest < ActionDispatch::IntegrationTest
 
   8       { :path => "/400", :method => :get },
 
   9       { :controller => "errors", :action => "bad_request" }
 
  12       { :path => "/403", :method => :get },
 
  13       { :controller => "errors", :action => "forbidden" }
 
  16       { :path => "/404", :method => :get },
 
  17       { :controller => "errors", :action => "not_found" }
 
  20       { :path => "/500", :method => :get },
 
  21       { :controller => "errors", :action => "internal_server_error" }
 
  27     assert_response :bad_request
 
  32     assert_response :forbidden
 
  37     assert_response :not_found
 
  40   def test_internal_server_error
 
  42     assert_response :internal_server_error