diff options
-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 |