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
Also remove tests that treat public permissions specially
Klaus Zanders72312951d13a
diff --git a/spec/models/users/allowed_to_spec.rb b/spec/models/users/allowed_to_spec.rbindex ad8ee989bdb..66fda8ea677 100644--- a/spec/models/users/allowed_to_spec.rb+++ b/spec/models/users/allowed_to_spec.rb@@ -136,16 +136,6 @@ RSpec.describe User, 'allowed_to?' doexpect(user).not_to be_allowed_to(permission, project)endend-- context 'and requesting a public permission' do- let(:permission) { :view_project } # a permission defined as public-- before do- final_setup_step- end-- it { expect(user).not_to be_allowed_to(permission, project) }- endendcontext 'and the project being public' do@@ -174,16 +164,6 @@ RSpec.describe User, 'allowed_to?' doexpect(user).to be_allowed_to(permission, project)endend-- context 'and requesting a public permission' do- let(:permission) { :view_project } # a permission defined as public-- before do- final_setup_step- end-- it { expect(user).to be_allowed_to(permission, project) }- endendend@@ -200,17 +180,6 @@ RSpec.describe User, 'allowed_to?' doit { expect(user).not_to be_allowed_to(permission, project) }end-- context 'and requesting a public permission' do- let(:permission) { :view_project } # a permission defined as public-- before do- project.update(public: false)- final_setup_step- end-- it { expect(user).to be_allowed_to(permission, project) }- endendcontext 'with the role granting the requested permission' do@@ -276,14 +245,6 @@ RSpec.describe User, 'allowed_to?' doit { expect(anonymous).to be_allowed_to(permission, project) }end- context 'with a public permission' do- let(:permission) { :view_project }-- before { final_setup_step }-- it { expect(anonymous).to be_allowed_to(permission, project) }- end-context 'with a controller and action that is allowed via multiple permissions' dolet(:permission) { :manage_categories }