module ActionDispatch::Testing::ResponsePredicates
Public Instance Methods
error?()
click to toggle source
Was there a server-side error?
# File lib/action_dispatch/testing/response_predicates.rb, line 26 def error? ActiveSupport::Deprecation.warn(<<~MSG) The error? predicate is deprecated and was removed in Rails 6.0. Please use server_error? as provided by Rack::Response::Helpers. MSG server_error? end
missing?()
click to toggle source
Was the URL not found?
# File lib/action_dispatch/testing/response_predicates.rb, line 17 def missing? ActiveSupport::Deprecation.warn(<<~MSG) The missing? predicate is deprecated and was removed in Rails 6.0. Please use not_found? as provided by Rack::Response::Helpers. MSG not_found? end
success?()
click to toggle source
Was the response successful?
# File lib/action_dispatch/testing/response_predicates.rb, line 8 def success? ActiveSupport::Deprecation.warn(<<~MSG) The success? predicate is deprecated and was removed in Rails 6.0. Please use successful? as provided by Rack::Response::Helpers. MSG successful? end