Welcome to mirror list, hosted at ThFree Co, Russian Federation.

expect_request_with_status.rb « helpers « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0469a94e3364803ed4bb2bf8e9cba2fb19c8bb60 (plain)
1
2
3
4
5
6
7
8
9
10
11
# 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