class AssertResponseWithUnexpectedErrorController
Used to test that assert_response includes the exception message in the failure message when an action raises and assert_response is expecting something other than an error.
Public Instance Methods
index()
click to toggle source
# File actionpack/test/controller/action_pack_assertions_test.rb, line 100 def index raise "FAIL" end
show()
click to toggle source
# File actionpack/test/controller/action_pack_assertions_test.rb, line 104 def show render plain: "Boom", status: 500 end