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

def compute_status_from(code)

Returns:
  • (Symbol) - representing the http numeric code

Parameters:
  • code (Fixnum) -- http status code to look up
def compute_status_from(code)
  status, _ = Rack::Utils::SYMBOL_TO_STATUS_CODE.find do |_, c|
    c == code
  end
  status
end