summaryrefslogtreecommitdiffstats
path: root/test/unit/issue_priority_test.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2023-01-11 13:18:06 +0000
committerGo MAEDA <maeda@farend.jp>2023-01-11 13:18:06 +0000
commit3eb364e45ae11c681677d7b9e3fd13f88d5b1d6b (patch)
tree1892ba71d707887c3eea105fb082b477525733d3 /test/unit/issue_priority_test.rb
parentfcd4f7f6c94ac2a017e3e7fcec66af2d474f649b (diff)
downloadredmine-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/unit/issue_priority_test.rb')
-rw-r--r--test/unit/issue_priority_test.rb2
1 files changed, 1 insertions, 1 deletions
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