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 rubocop complaints

Aaron Contreras58492a75d638
diff --git a/spec/controllers/shares_controller_spec.rb b/spec/controllers/shares_controller_spec.rb
index 2c3e3d740be..fd0535984b6 100644
--- a/spec/controllers/shares_controller_spec.rb
+++ b/spec/controllers/shares_controller_spec.rb
@@ -44,9 +44,7 @@ RSpec.describe SharesController do
context "when the user does not have permission to access the work package" do
before do
- mock_permissions_for(user) do |mock|
- mock.forbid_everything
- end
+ mock_permissions_for(user, &:forbid_everything)
end
it "raises a RecordNotFound error" do