diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-12 15:08:41 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-12 15:08:41 +0000 |
commit | 27859ed5eaeae234162b7cce7fd8bd351b5f9369 (patch) | |
tree | 5a62db348c3fd73516df87262c78e3546d4ec770 /spec/support/helpers | |
parent | 784fae4b9d7e92350075df2a43d06893080ed1e6 (diff) | |
download | gitlab-ce-27859ed5eaeae234162b7cce7fd8bd351b5f9369.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/support/helpers')
-rw-r--r-- | spec/support/helpers/sentry_client_helpers.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/support/helpers/sentry_client_helpers.rb b/spec/support/helpers/sentry_client_helpers.rb new file mode 100644 index 00000000000..7476b5fb249 --- /dev/null +++ b/spec/support/helpers/sentry_client_helpers.rb @@ -0,0 +1,14 @@ +# 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 |