class RSpec::Rails::Matchers::HaveHttpStatus::SymbolicStatus

def failure_message_when_negated

Returns:
  • (String) - explaining why the match failed
def failure_message_when_negated
  invalid_response_type_message ||
  "expected the response not to have status code #{pp_expected} " \
    "but it did"
end