Methods

Class Index [+]

Quicksearch

ActionDispatch::TestResponse

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.

Public Class Methods

from_response(response) click to toggle source
    # File 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

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.