config/default.yml in rubocop-rspec-2.26.1 vs config/default.yml in rubocop-rspec-2.27.0
- old
+ new
@@ -546,10 +546,17 @@
VersionAdded: '1.0'
VersionChanged: '1.7'
StyleGuide: https://rspec.rubystyle.guide/#instance-variables
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable
+RSpec/IsExpectedSpecify:
+ Description: Check for `specify` with `is_expected` and one-liner expectations.
+ Enabled: pending
+ VersionAdded: '2.27'
+ StyleGuide: https://rspec.rubystyle.guide/#it-and-specify
+ Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/IsExpectedSpecify
+
RSpec/ItBehavesLike:
Description: Checks that only one `it_behaves_like` style is used.
Enabled: true
EnforcedStyle: it_behaves_like
SupportedStyles:
@@ -811,10 +818,16 @@
Description: Check for repeated include of shared examples.
Enabled: true
VersionAdded: '1.44'
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/RepeatedIncludeExample
+RSpec/RepeatedSubjectCall:
+ Description: Checks for repeated calls to subject missing that it is memoized.
+ Enabled: pending
+ VersionAdded: '2.27'
+ Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/RepeatedSubjectCall
+
RSpec/ReturnFromStub:
Description: Checks for consistent style of stub's return setting.
Enabled: true
EnforcedStyle: and_return
SupportedStyles:
@@ -1124,12 +1137,16 @@
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Rails/AvoidSetupHook
RSpec/Rails/HaveHttpStatus:
Description: Checks that tests use `have_http_status` instead of equality matchers.
Enabled: pending
+ ResponseMethods:
+ - response
+ - last_response
SafeAutoCorrect: false
VersionAdded: '2.12'
+ VersionChanged: '2.27'
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Rails/HaveHttpStatus
RSpec/Rails/HttpStatus:
Description: Enforces use of symbolic or numeric value to describe HTTP status.
Enabled: true
@@ -1164,10 +1181,10 @@
routing: routing
system: system
views: view
RSpec/Rails/MinitestAssertions:
- Description: Check if using Minitest matchers.
+ Description: Check if using Minitest-like matchers.
Enabled: pending
VersionAdded: '2.17'
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Rails/MinitestAssertions
RSpec/Rails/NegationBeValid: