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.

Methods
F
Class Public methods
from_response(response)
    # File actionpack/lib/action_dispatch/testing/test_response.rb, line 9
 9:     def self.from_response(response)
10:       new.tap do |resp|
11:         resp.status  = response.status
12:         resp.headers = response.headers
13:         resp.body    = response.body
14:       end
15:     end