class method
self.from_response
Ruby on Rails 3.0.20
Since v3.0.20Signature
self.from_response(response)
No documentation comment.
Parameters
-
responsereq
Source
# 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
Defined in actionpack/lib/action_dispatch/testing/test_response.rb line 9
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::TestResponse