merged_organisation_list=(merged_organisations.count>1?"The organisations are ":"The organisation is ")+merged_organisations.to_sentence(last_word_connector:" and ")
@ -976,14 +976,14 @@ RSpec.describe Merge::MergeOrganisationsService do
end
it"sends a merge completion E-mail to the original absorbing organisation users"do
expect(MergeCompletionMailer).toreceive(:send_absorbing_organisation_success_mail).with(absorbing_organisation.data_protection_officers.first.email,"fake org, second org","absorbing org",Time.zone.today).once
expect(MergeCompletionMailer).toreceive(:send_absorbing_organisation_success_mail).with(absorbing_organisation_user.email,"fake org, second org","absorbing org",Time.zone.today).once
expect(MergeCompletionMailer).not_toreceive(:send_absorbing_organisation_success_mail).with(merging_organisation_user.email,"fake org, second org","absorbing org",Time.zone.today)
expect(MergeCompletionMailer).not_toreceive(:send_absorbing_organisation_success_mail).with(merging_organisation.data_protection_officers.first.email,"fake org, second org","absorbing org",Time.zone.today)