class method
self.from_response
Ruby on Rails 6.1.7.10
Since v3.0.20Signature
self.from_response(response)
No documentation comment.
Parameters
-
responsereq
Source
# File actionpack/lib/action_dispatch/testing/test_response.rb, line 13
def self.from_response(response)
new response.status, response.headers, response.body
end
Defined in actionpack/lib/action_dispatch/testing/test_response.rb line 13
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::TestResponse