mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-31 11:37:14 +00:00
Fix RuboCop offense Performance/AncestorsInclude (#38146).
git-svn-id: https://svn.redmine.org/redmine/trunk@22026 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
fcd4f7f6c9
commit
3eb364e45a
@ -486,13 +486,6 @@ Naming/VariableNumber:
|
||||
- 'test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb'
|
||||
- 'test/unit/project_test.rb'
|
||||
|
||||
# This cop supports unsafe autocorrection (--autocorrect-all).
|
||||
Performance/AncestorsInclude:
|
||||
Exclude:
|
||||
- 'test/unit/document_category_test.rb'
|
||||
- 'test/unit/issue_priority_test.rb'
|
||||
- 'test/unit/time_entry_activity_test.rb'
|
||||
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
Performance/BlockGivenWithExplicitBlock:
|
||||
Exclude:
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user