summaryrefslogtreecommitdiff
path: root/spec/services/error_tracking
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-23 03:08:53 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-23 03:08:53 +0000
commitccaa94488202341c25d24f6f16a70a9f658fc742 (patch)
tree886b8d0d4c14585243f3ccb439057e19f1860767 /spec/services/error_tracking
parentd65442b1d9621da6749d59ea1a544a2ea39b3a79 (diff)
downloadgitlab-ce-ccaa94488202341c25d24f6f16a70a9f658fc742.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/services/error_tracking')
-rw-r--r--spec/services/error_tracking/issue_update_service_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/services/error_tracking/issue_update_service_spec.rb b/spec/services/error_tracking/issue_update_service_spec.rb
index ad1dafe6ccc..4500c7c4f75 100644
--- a/spec/services/error_tracking/issue_update_service_spec.rb
+++ b/spec/services/error_tracking/issue_update_service_spec.rb
@@ -40,6 +40,16 @@ describe ErrorTracking::IssueUpdateService do
result
end
+ it 'clears the reactive cache' do
+ allow(error_tracking_setting)
+ .to receive(:expire_issues_cache)
+
+ result
+
+ expect(error_tracking_setting)
+ .to have_received(:expire_issues_cache)
+ end
+
context 'related issue and resolving' do
let(:issue) { create(:issue, project: project) }
let(:sentry_issue) { create(:sentry_issue, issue: issue) }