Patch #38146 » 0001-Fix-RuboCop-offense-Performance-AncestorsInclude.patch
| .rubocop_todo.yml | ||
|---|---|---|
|
- '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:
|
||
| test/unit/document_category_test.rb | ||
|---|---|---|
|
end
|
||
|
def test_should_be_an_enumeration
|
||
|
assert DocumentCategory.ancestors.include?(Enumeration)
|
||
|
assert DocumentCategory <= Enumeration
|
||
|
end
|
||
|
def test_objects_count
|
||
| test/unit/issue_priority_test.rb | ||
|---|---|---|
|
end
|
||
|
def test_should_be_an_enumeration
|
||
|
assert IssuePriority.ancestors.include?(Enumeration)
|
||
|
assert IssuePriority <= Enumeration
|
||
|
end
|
||
|
def test_objects_count
|
||
| test/unit/time_entry_activity_test.rb | ||
|---|---|---|
|
end
|
||
|
def test_should_be_an_enumeration
|
||
|
assert TimeEntryActivity.ancestors.include?(Enumeration)
|
||
|
assert TimeEntryActivity <= Enumeration
|
||
|
end
|
||
|
def test_objects_count
|
||