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

sentry_client_helpers.rb « helpers « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d473fe89feecfc09bc52d46274f92dd4ed8f6c70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

module SentryClientHelpers
  private

  def stub_sentry_request(url, http_method = :get, body: {}, status: 200, headers: {})
    stub_request(http_method, url)
      .to_return(
        status: status,
        headers: { 'Content-Type' => 'application/json' }.merge(headers),
        body: body.to_json
      )
  end
end