class RescueControllerTest
Public Instance Methods
test_block_rescue_handler()
click to toggle source
# File actionpack/test/controller/rescue_test.rb, line 277 def test_block_rescue_handler get :bad_gateway assert_response 502 end
test_block_rescue_handler_as_string()
click to toggle source
# File actionpack/test/controller/rescue_test.rb, line 281 def test_block_rescue_handler_as_string get :bad_gateway_raise_as_string assert_response 502 end
test_block_rescue_handler_with_argument()
click to toggle source
# File actionpack/test/controller/rescue_test.rb, line 286 def test_block_rescue_handler_with_argument get :resource_unavailable assert_equal "RescueController::ResourceUnavailable", @response.body end
test_block_rescue_handler_with_argument_as_string()
click to toggle source
# File actionpack/test/controller/rescue_test.rb, line 290 def test_block_rescue_handler_with_argument_as_string get :resource_unavailable_raise_as_string assert_equal "RescueController::ResourceUnavailableToRescueAsString", @response.body end
test_proc_rescue_handle_with_argument()
click to toggle source
# File actionpack/test/controller/rescue_test.rb, line 268 def test_proc_rescue_handle_with_argument get :invalid_request assert_equal "RescueController::InvalidRequest", @response.body end
test_proc_rescue_handle_with_argument_as_string()
click to toggle source
# File actionpack/test/controller/rescue_test.rb, line 272 def test_proc_rescue_handle_with_argument_as_string get :invalid_request_raise_as_string assert_equal "RescueController::InvalidRequestToRescueAsString", @response.body end
test_proc_rescue_handler()
click to toggle source
# File actionpack/test/controller/rescue_test.rb, line 259 def test_proc_rescue_handler get :not_allowed assert_response :forbidden end
test_proc_rescue_handler_as_string()
click to toggle source
# File actionpack/test/controller/rescue_test.rb, line 263 def test_proc_rescue_handler_as_string get :not_allowed_raise_as_string assert_response :forbidden end
test_rescue_handler()
click to toggle source
# File actionpack/test/controller/rescue_test.rb, line 239 def test_rescue_handler get :not_authorized assert_response :forbidden end
test_rescue_handler_string()
click to toggle source
# File actionpack/test/controller/rescue_test.rb, line 243 def test_rescue_handler_string get :not_authorized_raise_as_string assert_response :forbidden end
test_rescue_handler_with_argument()
click to toggle source
# File actionpack/test/controller/rescue_test.rb, line 248 def test_rescue_handler_with_argument assert_called_with @controller, :show_errors, [Exception] do get :record_invalid end end
test_rescue_handler_with_argument_as_string()
click to toggle source
# File actionpack/test/controller/rescue_test.rb, line 253 def test_rescue_handler_with_argument_as_string assert_called_with @controller, :show_errors, [Exception] do get :record_invalid_raise_as_string end end