Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Fix spec

Oliver Günther1c9f67702909
diff --git a/spec/requests/api/v3/groups/group_resource_spec.rb b/spec/requests/api/v3/groups/group_resource_spec.rb
index b7905460734..9e069905529 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