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
Fix specs
Klaus Zanders22d639eb90bc
diff --git a/spec/models/users/allowed_scope_spec.rb b/spec/models/users/allowed_scope_spec.rbindex c5c006d2593..e75a115d816 100644--- a/spec/models/users/allowed_scope_spec.rb+++ b/spec/models/users/allowed_scope_spec.rb@@ -63,7 +63,7 @@ RSpec.describe User, 'allowed scope' doendit 'returns the user' do- expect(described_class.allowed(action, project).where(id: user.id)).to match_array [user]+ expect(described_class.allowed(action, project).where(id: user.id)).to contain_exactly(user)endend@@ -76,7 +76,7 @@ RSpec.describe User, 'allowed scope' doendit 'returns the user' do- expect(described_class.allowed(action, project).where(id: user.id)).to match_array [user]+ expect(described_class.allowed(action, project).where(id: user.id)).to contain_exactly(user)endend@@ -173,7 +173,7 @@ RSpec.describe User, 'allowed scope' doendit 'returns the user' do- expect(described_class.allowed(action, project).where(id: user.id)).to match_array [user]+ expect(described_class.allowed(action, project).where(id: user.id)).to contain_exactly(user)endend@@ -191,7 +191,7 @@ RSpec.describe User, 'allowed scope' doendit 'returns the anonymous user' do- expect(described_class.allowed(action, project).where(id: [user.id, anonymous.id])).to match_array([anonymous])+ expect(described_class.allowed(action, project).where(id: [user.id, anonymous.id])).to contain_exactly(anonymous)endend@@ -260,7 +260,7 @@ RSpec.describe User, 'allowed scope' doendit 'returns the user' do- expect(described_class.allowed(public_action, project).where(id: user.id)).to match_array [user]+ expect(described_class.allowed(public_action, project).where(id: user.id)).to contain_exactly(user)endend@@ -275,7 +275,8 @@ RSpec.describe User, 'allowed scope' doendit 'returns the user and anonymous' do- expect(described_class.allowed(public_action, project).where(id: [user.id, anonymous.id])).to match_array [user, anonymous]+ expect(described_class.allowed(public_action,+ project).where(id: [user.id, anonymous.id])).to contain_exactly(user, anonymous)endend@@ -349,7 +350,7 @@ RSpec.describe User, 'allowed scope' doendit 'returns the user' do- expect(described_class.allowed_members(action, project).where(id: user.id)).to match_array [user]+ expect(described_class.allowed_members(action, project).where(id: user.id)).to contain_exactly(user)endend@@ -379,7 +380,7 @@ RSpec.describe User, 'allowed scope' doendit 'returns the user' do- expect(described_class.allowed_members(action, project).where(id: user.id)).to match_array [user]+ expect(described_class.allowed_members(action, project).where(id: user.id)).to contain_exactly(user)endend@@ -398,7 +399,7 @@ RSpec.describe User, 'allowed scope' doendend- describe '.allowed_on_work_package' do+ describe '.allowed_members_on_work_package' doshared_let(:richard) { create(:user) }shared_let(:dinesh) { create(:user) }shared_let(:gilfoyle) { create(:user) }@@ -432,7 +433,7 @@ RSpec.describe User, 'allowed scope' doendit "returns members of the work package and the work package's project with the given permission" do- expect(described_class.allowed_on_work_package(action, work_package))+ expect(described_class.allowed_members_on_work_package(action, work_package)).to contain_exactly(richard, gavin)endend