From 6cc799ac2910e00d642a7035930b08b876d62142 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sat, 24 Aug 2024 05:40:20 +0000 Subject: [PATCH] Fix RuboCop offense Lint/SendWithMixinArgument (#39887). git-svn-id: https://svn.redmine.org/redmine/trunk@22980 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .rubocop_todo.yml | 5 ----- test/object_helpers.rb | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 3c218d853..b0e2d58c7 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -231,11 +231,6 @@ Lint/ParenthesesAsGroupedExpression: - 'test/unit/attachment_test.rb' - 'test/unit/lib/redmine/export/pdf_test.rb' -# This cop supports safe autocorrection (--autocorrect). -Lint/SendWithMixinArgument: - Exclude: - - 'test/object_helpers.rb' - Lint/ShadowingOuterLocalVariable: Enabled: false diff --git a/test/object_helpers.rb b/test/object_helpers.rb index b334f77a2..f241af67e 100644 --- a/test/object_helpers.rb +++ b/test/object_helpers.rb @@ -288,7 +288,7 @@ module TrackerObjectHelpers end end end -Tracker.send :include, TrackerObjectHelpers +Tracker.include TrackerObjectHelpers module IssueObjectHelpers def close! @@ -300,4 +300,4 @@ module IssueObjectHelpers Issue.generate!(attributes.merge(:parent_issue_id => self.id)) end end -Issue.send :include, IssueObjectHelpers +Issue.include IssueObjectHelpers