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 @@
module ErrorTracking
class IssueUpdateService < ErrorTracking::BaseService
include ::Gitlab::Utils::StrongMemoize
private
def perform
......
......@@ -41,11 +41,14 @@ describe ErrorTracking::IssueUpdateService do
end
it 'clears the reactive cache' do
expect(error_tracking_setting)
allow(error_tracking_setting)
.to receive(:clear_cache)
.with('list_issues')
result
expect(error_tracking_setting)
.to have_received(:clear_cache)
.with('list_issues')
end
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