config/default.yml in rubocop-rspec-2.25.0 vs config/default.yml in rubocop-rspec-2.26.0
- old
+ new
@@ -176,11 +176,11 @@
VersionAdded: 2.9.0
VersionChanged: 2.10.0
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/BeNil
RSpec/BeforeAfterAll:
- Description: Check that before/after(:all) isn't being used.
+ Description: Check that before/after(:all/:context) isn't being used.
Enabled: true
Exclude:
- "**/spec/spec_helper.rb"
- "**/spec/rails_helper.rb"
- "**/spec/support/**/*.rb"
@@ -769,10 +769,22 @@
Description: Remove redundant `around` hook.
Enabled: pending
VersionAdded: '2.19'
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/RedundantAround
+RSpec/RedundantPredicateMatcher:
+ Description: Checks for redundant predicate matcher.
+ Enabled: pending
+ VersionAdded: '2.26'
+ Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/RedundantPredicateMatcher
+
+RSpec/RemoveConst:
+ Description: Checks that `remove_const` is not used in specs.
+ Enabled: pending
+ VersionAdded: '2.26'
+ Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/RemoveConst
+
RSpec/RepeatedDescription:
Description: Check for repeated description strings in example groups.
Enabled: true
VersionAdded: '1.9'
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/RepeatedDescription
@@ -830,12 +842,17 @@
Enabled: true
VersionAdded: '1.13'
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/SharedContext
RSpec/SharedExamples:
- Description: Enforces use of string to titleize shared examples.
+ Description: Checks for consistent style for shared example names.
Enabled: true
+ EnforcedStyle: string
+ SupportedStyles:
+ - string
+ - symbol
VersionAdded: '1.25'
+ VersionChanged: '2.26'
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/SharedExamples
RSpec/SingleArgumentMessageChain:
Description: Checks that chains of messages contain more than one element.
Enabled: true