15 lines
325 B
Ruby
15 lines
325 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
module SentryClientHelpers
|
||
|
private
|
||
|
|
||
|
def stub_sentry_request(url, body: {}, status: 200, headers: {})
|
||
|
stub_request(:get, url)
|
||
|
.to_return(
|
||
|
status: status,
|
||
|
headers: { 'Content-Type' => 'application/json' }.merge(headers),
|
||
|
body: body.to_json
|
||
|
)
|
||
|
end
|
||
|
end
|