debian-mirror-gitlab/spec/support/issuable_shared_examples.rb
2017-08-17 22:00:37 +05:30

7 lines
259 B
Ruby

shared_examples 'cache counters invalidator' do
it 'invalidates counter cache for assignees' do
expect_any_instance_of(User).to receive(:invalidate_merge_request_cache_counts)
described_class.new(project, user, {}).execute(merge_request)
end
end