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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Lint: Address cop about usage of `match_array`
Aaron Contreras7e810fd90f46
diff --git a/spec/services/groups/update_roles_service_integration_spec.rb b/spec/services/groups/update_roles_service_integration_spec.rbindex ccb44512a33..1381507b69b 100644--- a/spec/services/groups/update_roles_service_integration_spec.rb+++ b/spec/services/groups/update_roles_service_integration_spec.rb@@ -116,7 +116,7 @@ RSpec.describe Groups::UpdateRolesService, 'integration', type: :model doMember.where(principal: users).each do |member|expect(member.roles)- .to match_array([role, added_role])+ .to contain_exactly(role, added_role)endend@@ -163,7 +163,7 @@ RSpec.describe Groups::UpdateRolesService, 'integration', type: :model doMember.where(principal: users).each do |member|expect(member.roles)- .to match_array([role, added_role])+ .to contain_exactly(role, added_role)endend@@ -195,7 +195,7 @@ RSpec.describe Groups::UpdateRolesService, 'integration', type: :model doMember.where(principal: users).each do |member|expect(member.roles)- .to match_array([role])+ .to contain_exactly(role)endend@@ -229,14 +229,14 @@ RSpec.describe Groups::UpdateRolesService, 'integration', type: :model doservice_callexpect(Member.find_by(principal: users.first).roles.uniq)- .to match_array([role, added_role])+ .to contain_exactly(role, added_role)endit 'adds the roles to all inherited memberships' doservice_callexpect(Member.find_by(principal: users.last).roles)- .to match_array([role, added_role])+ .to contain_exactly(role, added_role)endit_behaves_like 'keeps timestamp' do@@ -275,7 +275,7 @@ RSpec.describe Groups::UpdateRolesService, 'integration', type: :model doMember.where(principal: users).each do |member|expect(member.roles)- .to match_array([role])+ .to contain_exactly(role)endend@@ -309,7 +309,7 @@ RSpec.describe Groups::UpdateRolesService, 'integration', type: :model doservice_callexpect(Member.find_by(principal: users.last).roles)- .to match_array([role])+ .to contain_exactly(role)endit 'keeps the non inherited roles' do@@ -355,7 +355,7 @@ RSpec.describe Groups::UpdateRolesService, 'integration', type: :model doMember.where(principal: users).each do |member|expect(member.roles)- .to match_array([replacement_role])+ .to contain_exactly(replacement_role)endend@@ -389,7 +389,7 @@ RSpec.describe Groups::UpdateRolesService, 'integration', type: :model doservice_callexpect(Member.find_by(principal: users.last).roles)- .to match_array([replacement_role])+ .to contain_exactly(replacement_role)endit 'keeps the non inherited roles' do@@ -451,7 +451,7 @@ RSpec.describe Groups::UpdateRolesService, 'integration', type: :model doservice_callexpect(Member.find_by(principal: users.first).roles.uniq)- .to match_array([role, other_role, added_role])+ .to contain_exactly(role, other_role, added_role)endit_behaves_like 'sends notification' do