method
from_response
v3.0.9 -
Show latest stable
- Class:
ActionDispatch::TestResponse
from_response(response)public
No documentation available.
# File actionpack/lib/action_dispatch/testing/test_response.rb, line 9
def self.from_response(response)
new.tap do |resp|
resp.status = response.status
resp.headers = response.headers
resp.body = response.body
end
end