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

def matches?(response)

Returns:
  • (Boolean) - `true` if Rack's associated numeric HTTP code matched

Parameters:
  • response (Object) -- object providing an http code to match
def matches?(response)
  test_response = as_test_response(response)
  @actual = test_response.response_code
  expected == @actual
rescue TypeError => _ignored
  @invalid_response = response
  false
end