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

Chore: Fix shadowed local variable warning

Aaron Contreras7b00fd4ae845
diff --git a/spec/controllers/account_controller_spec.rb b/spec/controllers/account_controller_spec.rb
index 88af9cb337e..ced9893d8be 100644
--- a/spec/controllers/account_controller_spec.rb
+++ b/spec/controllers/account_controller_spec.rb
@@ -719,7 +719,7 @@ RSpec.describe AccountController,
it "notifies the admins about the issue" do
perform_enqueued_jobs
- mail = ActionMailer::Base.deliveries.detect { |mail| mail.to.first == admin.mail }
+ mail = ActionMailer::Base.deliveries.detect { |m| m.to.first == admin.mail }
expect(mail).to be_present
expect(mail.subject).to match /limit reached/
expect(mail.body.parts.first.to_s).to match /new user \(#{params[:user][:mail]}\)/