RSpec::Matchers.define:have_gitlab_http_statusdo|expected|matchdo|actual|expect(actual).tohave_http_status(expected)enddescriptiondo"respond with numeric status code #{expected}"endfailure_messagedo|actual|"expected the response to have status code #{expected.inspect}"\" but it was #{actual.response_code}. The response was: #{actual.body}"endend