instance method
response_body_if_short
Ruby on Rails 8.0.4
Since v5.2.8.1 PrivateSignature
response_body_if_short()
No documentation comment.
Source
# File actionpack/lib/action_dispatch/testing/assertions/response.rb, line 99
def response_body_if_short
return "" if @response.body.size > 500
"\nResponse body: #{@response.body}"
end
Defined in actionpack/lib/action_dispatch/testing/assertions/response.rb line 99
· View on GitHub
· Improve this page
· Find usages on GitHub