diff options
author | Go MAEDA <maeda@farend.jp> | 2023-01-11 13:18:06 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-01-11 13:18:06 +0000 |
commit | 3eb364e45ae11c681677d7b9e3fd13f88d5b1d6b (patch) | |
tree | 1892ba71d707887c3eea105fb082b477525733d3 /test | |
parent | fcd4f7f6c94ac2a017e3e7fcec66af2d474f649b (diff) | |
download | redmine-3eb364e45ae11c681677d7b9e3fd13f88d5b1d6b.tar.gz redmine-3eb364e45ae11c681677d7b9e3fd13f88d5b1d6b.zip |
Fix RuboCop offense Performance/AncestorsInclude (#38146).
git-svn-id: https://svn.redmine.org/redmine/trunk@22026 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/document_category_test.rb | 2 | ||||
-rw-r--r-- | test/unit/issue_priority_test.rb | 2 | ||||
-rw-r--r-- | test/unit/time_entry_activity_test.rb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/document_category_test.rb b/test/unit/document_category_test.rb index 125c199ba..7ae3962ee 100644 --- a/test/unit/document_category_test.rb +++ b/test/unit/document_category_test.rb @@ -27,7 +27,7 @@ class DocumentCategoryTest < ActiveSupport::TestCase end def test_should_be_an_enumeration - assert DocumentCategory.ancestors.include?(Enumeration) + assert DocumentCategory <= Enumeration end def test_objects_count diff --git a/test/unit/issue_priority_test.rb b/test/unit/issue_priority_test.rb index efd58b718..ff192e317 100644 --- a/test/unit/issue_priority_test.rb +++ b/test/unit/issue_priority_test.rb @@ -49,7 +49,7 @@ class IssuePriorityTest < ActiveSupport::TestCase end def test_should_be_an_enumeration - assert IssuePriority.ancestors.include?(Enumeration) + assert IssuePriority <= Enumeration end def test_objects_count diff --git a/test/unit/time_entry_activity_test.rb b/test/unit/time_entry_activity_test.rb index bfbf534ab..09c984f28 100644 --- a/test/unit/time_entry_activity_test.rb +++ b/test/unit/time_entry_activity_test.rb @@ -37,7 +37,7 @@ class TimeEntryActivityTest < ActiveSupport::TestCase end def test_should_be_an_enumeration - assert TimeEntryActivity.ancestors.include?(Enumeration) + assert TimeEntryActivity <= Enumeration end def test_objects_count |