diff options
Diffstat (limited to 'spec/services/issues')
-rw-r--r-- | spec/services/issues/update_service_spec.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/services/issues/update_service_spec.rb b/spec/services/issues/update_service_spec.rb index 604befd7225..b8a0e118479 100644 --- a/spec/services/issues/update_service_spec.rb +++ b/spec/services/issues/update_service_spec.rb @@ -689,8 +689,9 @@ describe Issues::UpdateService, :mailer do context 'valid canonical_issue_id' do it 'calls the duplicate service with both issues' do - expect_any_instance_of(Issues::DuplicateService) - .to receive(:execute).with(issue, canonical_issue) + expect_next_instance_of(Issues::DuplicateService) do |service| + expect(service).to receive(:execute).with(issue, canonical_issue) + end update_issue(canonical_issue_id: canonical_issue.id) end |