blob: 3198f1b9edd22295b9b7810b539db60fb4bb8202 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
RSpec::Matchers.define :have_gitlab_http_status do |expected|
match do |actual|
expect(actual).to have_http_status(expected)
end
description do
"respond with numeric status code #{expected}"
end
failure_message do |actual|
"expected the response to have status code #{expected.inspect}" \
" but it was #{actual.response_code}. The response was: #{actual.body}"
end
end
|