debian-mirror-gitlab/spec/support/helpers/expect_request_with_status.rb
2019-10-12 21:52:04 +05:30

11 lines
206 B
Ruby

# frozen_string_literal: true
module ExpectRequestWithStatus
def expect_request_with_status(status)
expect do
yield
expect(response).to have_gitlab_http_status(status)
end
end
end