config/default.yml in rubocop-rspec-2.22.0 vs config/default.yml in rubocop-rspec-2.23.0

- old
+ new

@@ -179,14 +179,15 @@ RSpec/BeforeAfterAll: Description: Check that before/after(:all) isn't being used. Enabled: true Exclude: - - spec/spec_helper.rb - - spec/rails_helper.rb - - spec/support/**/*.rb + - "**/spec/spec_helper.rb" + - "**/spec/rails_helper.rb" + - "**/spec/support/**/*.rb" VersionAdded: '1.12' + VersionChanged: '2.23' StyleGuide: https://rspec.rubystyle.guide/#avoid-hooks-with-context-scope Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/BeforeAfterAll RSpec/ChangeByZero: Description: Prefer negated matchers over `to change.by(0)`. @@ -402,12 +403,13 @@ RSpec/ExpectActual: Description: Checks for `expect(...)` calls containing literal values. Enabled: true Exclude: - - spec/routing/**/* + - "**/spec/routing/**/*" VersionAdded: '1.7' + VersionChanged: '2.23' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ExpectActual RSpec/ExpectChange: Description: Checks for consistent style of change matcher. Enabled: true @@ -511,12 +513,15 @@ RSpec/IndexedLet: Description: Do not set up test data using indexes (e.g., `item_1`, `item_2`). Enabled: pending VersionAdded: '2.20' + VersionChanged: '2.23' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/IndexedLet Max: 1 + AllowedIdentifiers: [] + AllowedPatterns: [] RSpec/InstanceSpy: Description: Checks for `instance_double` used with `have_received`. Enabled: true VersionAdded: '1.12' @@ -723,10 +728,16 @@ Description: Check for `once` and `twice` receive counts matchers usage. Enabled: true VersionAdded: '1.26' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ReceiveCounts +RSpec/ReceiveMessages: + Description: Checks for multiple messages stubbed on the same object. + Enabled: pending + VersionAdded: '2.23' + Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ReceiveMessages + RSpec/ReceiveNever: Description: Prefer `not_to receive(...)` over `receive(...).never`. Enabled: true VersionAdded: '1.28' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ReceiveNever @@ -972,15 +983,15 @@ RSpec/FactoryBot/AttributeDefinedStatically: Description: Always declare attribute values as blocks. Enabled: true Include: - - spec/factories.rb - - spec/factories/**/*.rb - - features/support/factories/**/*.rb + - "**/spec/factories.rb" + - "**/spec/factories/**/*.rb" + - "**/features/support/factories/**/*.rb" VersionAdded: '1.28' - VersionChanged: '2.0' + VersionChanged: '2.23' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/FactoryBot/AttributeDefinedStatically RSpec/FactoryBot/ConsistentParenthesesStyle: Description: Use a consistent style for parentheses in factory bot calls. Enabled: pending @@ -995,30 +1006,30 @@ Description: Checks for create_list usage. Enabled: true Include: - "**/*_spec.rb" - "**/spec/**/*" - - spec/factories.rb - - spec/factories/**/*.rb - - features/support/factories/**/*.rb + - "**/spec/factories.rb" + - "**/spec/factories/**/*.rb" + - "**/features/support/factories/**/*.rb" EnforcedStyle: create_list SupportedStyles: - create_list - n_times VersionAdded: '1.25' - VersionChanged: '2.0' + VersionChanged: '2.23' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/FactoryBot/CreateList RSpec/FactoryBot/FactoryClassName: Description: Use string value when setting the class attribute explicitly. Enabled: true Include: - - spec/factories.rb - - spec/factories/**/*.rb - - features/support/factories/**/*.rb + - "**/spec/factories.rb" + - "**/spec/factories/**/*.rb" + - "**/features/support/factories/**/*.rb" VersionAdded: '1.37' - VersionChanged: '2.0' + VersionChanged: '2.23' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/FactoryBot/FactoryClassName RSpec/FactoryBot/FactoryNameStyle: Description: Checks for name style for argument of FactoryBot::Syntax::Methods. Enabled: pending @@ -1092,9 +1103,19 @@ RSpec/Rails/MinitestAssertions: Description: Check if using Minitest matchers. Enabled: pending VersionAdded: '2.17' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Rails/MinitestAssertions + +RSpec/Rails/NegationBeValid: + Description: Enforces use of `be_invalid` or `not_to` for negated be_valid. + EnforcedStyle: not_to + SupportedStyles: + - not_to + - be_invalid + Enabled: pending + VersionAdded: '2.23' + Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Rails/NegationBeValid RSpec/Rails/TravelAround: Description: Prefer to travel in `before` rather than `around`. Enabled: pending Safe: false