From 1c9f67702909e016cb8b2ace3121a77d92779fc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Mon, 11 Oct 2021 20:42:52 +0200 Subject: [PATCH] Fix spec --- spec/requests/api/v3/groups/group_resource_spec.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spec/requests/api/v3/groups/group_resource_spec.rb b/spec/requests/api/v3/groups/group_resource_spec.rb index b790546073..9e06990552 100644 --- a/spec/requests/api/v3/groups/group_resource_spec.rb +++ b/spec/requests/api/v3/groups/group_resource_spec.rb @@ -263,14 +263,13 @@ describe 'API v3 Group resource', type: :request, content_type: :json do it 'sends a mail notifying of the added project memberships to the added user' do expect(ActionMailer::Base.deliveries.size) - .to eql 2 + .to eql 1 expect(ActionMailer::Base.deliveries.map(&:to).flatten.uniq) .to match_array another_user.mail expect(ActionMailer::Base.deliveries.map(&:subject).flatten) - .to match_array [I18n.t(:'mail_member_added_project.subject', project: other_project.name), - I18n.t(:'mail_member_updated_project.subject', project: project.name)] + .to match_array [I18n.t(:'mail_member_updated_project.subject', project: project.name)] end end