config/default.yml in rubocop-rspec-2.4.0 vs config/default.yml in rubocop-rspec-2.5.0
- old
+ new
@@ -146,10 +146,16 @@
StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ContextWording
RSpec/DescribeClass:
Description: Check that the first argument to the top-level describe is a constant.
Enabled: true
+ Exclude:
+ - "**/spec/features/**/*"
+ - "**/spec/requests/**/*"
+ - "**/spec/routing/**/*"
+ - "**/spec/system/**/*"
+ - "**/spec/views/**/*"
IgnoredMetadata:
type:
- channel
- controller
- helper
@@ -162,11 +168,11 @@
- feature
- system
- mailbox
- aruba
VersionAdded: '1.0'
- VersionChanged: '1.44'
+ VersionChanged: '2.5'
StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/DescribeClass
RSpec/DescribeMethod:
Description: Checks that the second argument to `describe` specifies a method.
Enabled: true
@@ -267,10 +273,16 @@
- single_line_only
- disallow
VersionAdded: '1.22'
StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ExampleWithoutDescription
+RSpec/ExcessiveDocstringSpacing:
+ Description: Checks for excessive whitespace in example descriptions.
+ Enabled: pending
+ VersionAdded: '2.5'
+ StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ExcessiveDocstringSpacing
+
RSpec/ExampleWording:
Description: Checks for common mistakes in example descriptions.
Enabled: true
CustomTransform:
be: is
@@ -295,11 +307,13 @@
Enabled: true
EnforcedStyle: method_call
SupportedStyles:
- method_call
- block
+ SafeAutoCorrect: false
VersionAdded: '1.22'
+ VersionChanged: '2.5'
StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ExpectChange
RSpec/ExpectInHook:
Description: Do not use `expect` in hooks such as `before`.
Enabled: true
@@ -640,9 +654,15 @@
RSpec/StubbedMock:
Description: Checks that message expectations do not have a configured response.
Enabled: true
VersionAdded: '1.44'
StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/StubbedMock
+
+RSpec/SubjectDeclaration:
+ Description: Ensure that subject is defined using subject helper.
+ Enabled: pending
+ VersionAdded: '2.5'
+ StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/SubjectDeclaration
RSpec/SubjectStub:
Description: Checks for stubbed test subjects.
Enabled: true
VersionAdded: '1.7'