instance method
error?
Ruby on Rails 5.2.8.1
Since v3.0.20 Last seen in v5.2.8.1Available in: v3.0.20 v5.2.8.1
Signature
error?()
Was there a server-side error?
Source
# File actionpack/lib/action_dispatch/testing/test_response.rb, line 41
def error?
ActiveSupport::Deprecation.warn(<<-MSG.squish)
The error? predicate is deprecated and will be removed in Rails 6.0.
Please use server_error? as provided by Rack::Response::Helpers.
MSG
server_error?
end
Defined in actionpack/lib/action_dispatch/testing/test_response.rb line 41
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::TestResponse