diff options
author | Go MAEDA <maeda@farend.jp> | 2024-08-24 05:40:20 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2024-08-24 05:40:20 +0000 |
commit | 6cc799ac2910e00d642a7035930b08b876d62142 (patch) | |
tree | 2c3ef80c3f4a6150ab0e177e03cc7b10c449a651 | |
parent | 1daa6937ac7b6c2c3e45c6f8222604de0d38cc1e (diff) | |
download | redmine-6cc799ac2910e00d642a7035930b08b876d62142.tar.gz redmine-6cc799ac2910e00d642a7035930b08b876d62142.zip |
Fix RuboCop offense Lint/SendWithMixinArgument (#39887).
git-svn-id: https://svn.redmine.org/redmine/trunk@22980 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | .rubocop_todo.yml | 5 | ||||
-rw-r--r-- | 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 |