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 double render errors in permission specs

Dombi Attila90e3341718d1
diff --git a/spec/support/permission_specs.rb b/spec/support/permission_specs.rb
index d438ec2f620..92c28624486 100644
--- a/spec/support/permission_specs.rb
+++ b/spec/support/permission_specs.rb
@@ -66,7 +66,7 @@ module PermissionSpecs
before do
# As failures generate a response we need to prevent calls to nil
- controller.response = ActionDispatch::TestResponse.new
+ controller.set_response!(ActionDispatch::TestResponse.new)
allow(User).to receive(:current).and_return(current_user)