diff options
Diffstat (limited to 'spec/services/issues/set_crm_contacts_service_spec.rb')
-rw-r--r-- | spec/services/issues/set_crm_contacts_service_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/services/issues/set_crm_contacts_service_spec.rb b/spec/services/issues/set_crm_contacts_service_spec.rb index aa5dec20a13..7d709bbd9c8 100644 --- a/spec/services/issues/set_crm_contacts_service_spec.rb +++ b/spec/services/issues/set_crm_contacts_service_spec.rb @@ -106,6 +106,14 @@ RSpec.describe Issues::SetCrmContactsService, feature_category: :team_planning d it_behaves_like 'setting contacts' it_behaves_like 'adds system note', 1, 1 + + context 'with empty list' do + let(:params) { { replace_ids: [] } } + let(:expected_contacts) { [] } + + it_behaves_like 'setting contacts' + it_behaves_like 'adds system note', 0, 2 + end end context 'add' do |