config/default.yml in rubocop-rspec-2.12.1 vs config/default.yml in rubocop-rspec-2.13.0

- old
+ new

@@ -1,9 +1,10 @@ --- RSpec: Enabled: true StyleGuideBaseURL: https://rspec.rubystyle.guide + DocumentationBaseURL: https://docs.rubocop.org/rubocop-rspec Include: &1 - "**/*_spec.rb" - "**/spec/**/*" Language: &2 inherit_mode: @@ -59,13 +60,18 @@ - xscenario - skip Pending: - pending Expectations: + - are_expected - expect - - is_expected - expect_any_instance_of + - is_expected + - should + - should_not + - should_not_receive + - should_receive Helpers: - let - let! Hooks: - prepend_before @@ -185,13 +191,26 @@ Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/BeforeAfterAll RSpec/ChangeByZero: Description: Prefer negated matchers over `to change.by(0)`. Enabled: pending - VersionAdded: 2.11.0 + VersionAdded: '2.11' + VersionChanged: '2.13' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ChangeByZero + NegatedMatcher: ~ +RSpec/ClassCheck: + Description: Enforces consistent use of `be_a` or `be_kind_of`. + StyleGuide: "#is-a-vs-kind-of" + Enabled: pending + VersionAdded: '2.13' + EnforcedStyle: be_a + SupportedStyles: + - be_a + - be_kind_of + Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ClassCheck + RSpec/ContextMethod: Description: "`context` should not be used for specifying methods." Enabled: true VersionAdded: '1.36' StyleGuide: https://rspec.rubystyle.guide/#example-group-naming @@ -202,12 +221,13 @@ Enabled: true Prefixes: - when - with - without + AllowedPatterns: [] VersionAdded: '1.20' - VersionChanged: 1.20.1 + VersionChanged: '2.13' StyleGuide: https://rspec.rubystyle.guide/#context-descriptions Reference: 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. @@ -277,12 +297,13 @@ Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Dialect RSpec/EmptyExampleGroup: Description: Checks if an example group does not include any tests. Enabled: true + SafeAutoCorrect: false VersionAdded: '1.7' - VersionChanged: '2.0' + VersionChanged: '2.13' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/EmptyExampleGroup RSpec/EmptyHook: Description: Checks for empty before and after hooks. Enabled: true @@ -313,12 +334,14 @@ RSpec/EmptyLineAfterHook: Description: Checks if there is an empty line after hook blocks. Enabled: true VersionAdded: '1.27' + VersionChanged: '2.13' StyleGuide: https://rspec.rubystyle.guide/#empty-line-after-let Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/EmptyLineAfterHook + AllowConsecutiveOneLiners: true RSpec/EmptyLineAfterSubject: Description: Checks if there is an empty line after subject block. Enabled: true VersionAdded: '1.14' @@ -605,14 +628,22 @@ RSpec/NestedGroups: Description: Checks for nested example groups. Enabled: true Max: 3 + AllowedGroups: [] VersionAdded: '1.7' - VersionChanged: '1.10' + VersionChanged: '2.13' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/NestedGroups +RSpec/NoExpectationExample: + Description: Checks if an example contains any expectation. + Enabled: pending + Safe: false + VersionAdded: '2.13' + Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/NoExpectationExample + RSpec/NotToNot: Description: Checks for consistent method usage for negating expectations. Enabled: true EnforcedStyle: not_to SupportedStyles: @@ -773,13 +804,14 @@ Enabled: true EnforcedStyle: snake_case SupportedStyles: - snake_case - camelCase + AllowedPatterns: [] IgnoredPatterns: [] VersionAdded: '1.40' - VersionChanged: '1.43' + VersionChanged: '2.13' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/VariableName RSpec/VerifiedDoubleReference: Description: Checks for consistent verified double reference style. Enabled: pending @@ -831,9 +863,15 @@ Enabled: true EnabledMethods: [] VersionAdded: '1.17' VersionChanged: '2.0' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Capybara/FeatureMethods + +RSpec/Capybara/SpecificFinders: + Description: Checks if there is a more specific finder offered by Capybara. + Enabled: pending + VersionAdded: '2.13' + Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Capybara/SpecificFinders RSpec/Capybara/SpecificMatcher: Description: Checks for there is a more specific matcher offered by Capybara. Enabled: pending VersionAdded: '2.12'