From 83aa0ea8230018d37f2a0ad562418c3114b6fa81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Trzci=C5=84ski?= Date: Wed, 28 Nov 2018 18:02:23 +0100 Subject: Refactor Sentry handling --- spec/lib/gitlab/sentry_spec.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'spec/lib/gitlab/sentry_spec.rb') diff --git a/spec/lib/gitlab/sentry_spec.rb b/spec/lib/gitlab/sentry_spec.rb index 1128eaf8560..faae9f1577c 100644 --- a/spec/lib/gitlab/sentry_spec.rb +++ b/spec/lib/gitlab/sentry_spec.rb @@ -11,7 +11,7 @@ describe Gitlab::Sentry do end end - describe '.track_exception' do + describe '.handle_exception' do let(:exception) { RuntimeError.new('boom') } before do @@ -20,7 +20,7 @@ describe Gitlab::Sentry do it 'raises the exception if it should' do expect(described_class).to receive(:should_raise_for_dev?).and_return(true) - expect { described_class.track_exception(exception) } + expect { described_class.handle_exception(exception) } .to raise_error(RuntimeError) end @@ -45,7 +45,7 @@ describe Gitlab::Sentry do tags: a_hash_including(expected_tags), extra: a_hash_including(expected_extras)) - described_class.track_exception( + described_class.handle_exception( exception, issue_url: 'http://gitlab.com/gitlab-org/gitlab-ce/issues/1', extra: { some_other_info: 'info' } @@ -55,12 +55,12 @@ describe Gitlab::Sentry do it 'sets the context' do expect(described_class).to receive(:context) - described_class.track_exception(exception) + described_class.handle_exception(exception) end end end - context '.track_acceptable_exception' do + context '.report_exception' do let(:exception) { RuntimeError.new('boom') } before do @@ -83,7 +83,7 @@ describe Gitlab::Sentry do tags: a_hash_including(expected_tags), extra: a_hash_including(expected_extras)) - described_class.track_acceptable_exception( + described_class.report_exception( exception, issue_url: 'http://gitlab.com/gitlab-org/gitlab-ce/issues/1', extra: { some_other_info: 'info' } -- cgit v1.2.1