config/default.yml in rubocop-rspec-2.19.0 vs config/default.yml in rubocop-rspec-2.20.0

- old
+ new

@@ -142,10 +142,16 @@ Enabled: true VersionAdded: '1.25' StyleGuide: https://rspec.rubystyle.guide/#be-matcher Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Be +RSpec/BeEmpty: + Description: Prefer using `be_empty` when checking for an empty array. + Enabled: pending + VersionAdded: '2.20' + Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/BeEmpty + RSpec/BeEq: Description: Check for expectations where `be(...)` can replace `eq(...)`. Enabled: pending Safe: false VersionAdded: 2.9.0 @@ -200,12 +206,12 @@ - be_a - be_kind_of Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ClassCheck RSpec/ContainExactly: - Description: Prefer `match_array` when matching array values. - Enabled: true + Description: Checks where `contain_exactly` is used. + Enabled: pending VersionAdded: '2.19' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ContainExactly RSpec/ContextMethod: Description: "`context` should not be used for specifying methods." @@ -501,10 +507,17 @@ - require_implicit VersionAdded: '1.29' VersionChanged: '2.13' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ImplicitSubject +RSpec/IndexedLet: + Description: Do not set up test data using indexes (e.g., `item_1`, `item_2`). + Enabled: pending + VersionAdded: '2.20' + Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/IndexedLet + Max: 1 + RSpec/InstanceSpy: Description: Checks for `instance_double` used with `have_received`. Enabled: true VersionAdded: '1.12' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceSpy @@ -561,12 +574,12 @@ Enabled: true VersionAdded: '1.7' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/LetSetup RSpec/MatchArray: - Description: Prefer `contain_exactly` when matching an array literal. - Enabled: true + Description: Checks where `match_array` is used. + Enabled: pending VersionAdded: '2.19' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/MatchArray RSpec/MessageChain: Description: Check that chains of messages are not being stubbed. @@ -1046,11 +1059,12 @@ Enabled: true EnforcedStyle: symbolic SupportedStyles: - numeric - symbolic + - be_status VersionAdded: '1.23' - VersionChanged: '2.0' + VersionChanged: '2.20' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Rails/HttpStatus RSpec/Rails/InferredSpecType: Description: Identifies redundant spec type. Enabled: pending