config/default.yml in rubocop-rspec-2.5.0 vs config/default.yml in rubocop-rspec-2.6.0

- old
+ new

@@ -1,13 +1,26 @@ --- RSpec: Enabled: true - Include: + Include: &1 - "**/*_spec.rb" - "**/spec/**/*" - Language: + Language: &2 + inherit_mode: + merge: + - Expectations + - Helpers + - Hooks + - HookScopes + - Runners + - Subjects ExampleGroups: + inherit_mode: + merge: + - Regular + - Skipped + - Focused Regular: - describe - context - feature - example_group @@ -18,10 +31,16 @@ Focused: - fdescribe - fcontext - ffeature Examples: + inherit_mode: + merge: + - Regular + - Skipped + - Focused + - Pending Regular: - it - specify - example - scenario @@ -60,10 +79,14 @@ - example - context - all - suite Includes: + inherit_mode: + merge: + - Examples + - Context Examples: - it_behaves_like - it_should_behave_like - include_examples Context: @@ -71,10 +94,14 @@ Runners: - to - to_not - not_to SharedGroups: + inherit_mode: + merge: + - Examples + - Context Examples: - shared_examples - shared_examples_for Context: - shared_context @@ -716,10 +743,15 @@ Description: This cop checks for calling a block within a stub. Enabled: true VersionAdded: '1.32' StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Yield +RSpec/Capybara: + Enabled: true + Include: *1 + Language: *2 + RSpec/Capybara/CurrentPathExpectation: Description: Checks that no expectations are set on Capybara's `current_path`. Enabled: true VersionAdded: '1.18' VersionChanged: '2.0' @@ -738,10 +770,15 @@ Enabled: true VersionAdded: '1.39' VersionChanged: '2.0' StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Capybara/VisibilityMatcher +RSpec/FactoryBot: + Enabled: true + Include: *1 + Language: *2 + RSpec/FactoryBot/AttributeDefinedStatically: Description: Always declare attribute values as blocks. Enabled: true Include: - spec/factories.rb @@ -776,9 +813,14 @@ - spec/factories/**/*.rb - features/support/factories/**/*.rb VersionAdded: '1.37' VersionChanged: '2.0' StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/FactoryBot/FactoryClassName + +RSpec/Rails: + Enabled: true + Include: *1 + Language: *2 RSpec/Rails/AvoidSetupHook: Description: Checks that tests use RSpec `before` hook over Rails `setup` method. Enabled: pending VersionAdded: '2.4'