Integration test methods such as ActionDispatch::Integration::Session#get and ActionDispatch::Integration::Session#post return objects of class TestResponse, which represent the HTTP response results of the requested controller actions.
See Response for more information on controller response objects.
Was there a client client?
# File lib/action_dispatch/testing/test_response.rb, line 132
132: def client_error?
133: (400..499).include?(response_code)
134: end
Was there a server-side error?
# File lib/action_dispatch/testing/test_response.rb, line 126
126: def error?
127: (500..599).include?(response_code)
128: end
Was the URL not found?
# File lib/action_dispatch/testing/test_response.rb, line 116
116: def missing?
117: response_code == 404
118: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.