Commit f4128209 authored by Sean Arnold's avatar Sean Arnold Committed by Douglas Barbosa Alexandre

Rewrite spec to be clearer

parent 3fc60058
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
module ErrorTracking module ErrorTracking
class IssueUpdateService < ErrorTracking::BaseService class IssueUpdateService < ErrorTracking::BaseService
include ::Gitlab::Utils::StrongMemoize
private private
def perform def perform
......
...@@ -41,11 +41,14 @@ describe ErrorTracking::IssueUpdateService do ...@@ -41,11 +41,14 @@ describe ErrorTracking::IssueUpdateService do
end end
it 'clears the reactive cache' do it 'clears the reactive cache' do
expect(error_tracking_setting) allow(error_tracking_setting)
.to receive(:clear_cache) .to receive(:clear_cache)
.with('list_issues')
result result
expect(error_tracking_setting)
.to have_received(:clear_cache)
.with('list_issues')
end end
context 'related issue and resolving' do context 'related issue and resolving' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment