Skip to content

Commit 2ffe982

Browse files
authored
Merge pull request #57 from rubocop/fixes
Fixes some rubocop offenses
2 parents b7fc134 + 776605c commit 2ffe982

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.rubocop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ AllCops:
1616
- 'tmp/**/*'
1717
- 'spec/smoke_tests/**/*.rb'
1818

19+
InternalAffairs/OnSendWithoutOnCSend:
20+
Enabled: false
21+
1922
Layout/HashAlignment:
2023
EnforcedHashRocketStyle:
2124
- key

lib/rubocop/rspec_rails/description_extractor.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ def documented_constant
5757
end
5858

5959
def cop_subclass?
60-
yardoc.superclass.path == RSPEC_RAILS_COP_CLASS_NAME ||
61-
yardoc.superclass.path == RUBOCOP_COP_CLASS_NAME
60+
[RSPEC_RAILS_COP_CLASS_NAME,
61+
RUBOCOP_COP_CLASS_NAME].include?(yardoc.superclass.path)
6262
end
6363

6464
def abstract?

0 commit comments

Comments
 (0)