config/default.yml in rubocop-capybara-2.18.0 vs config/default.yml in rubocop-capybara-2.19.0

- old
+ new

@@ -1,16 +1,26 @@ --- Capybara: Enabled: true DocumentationBaseURL: https://docs.rubocop.org/rubocop-capybara - Include: + Include: &1 - "**/*_spec.rb" - "**/spec/**/*" - "**/test/**/*" - "**/*_steps.rb" - "**/features/step_definitions/**/*" +Capybara/ClickLinkOrButtonStyle: + Description: Checks for click button or link style. + Enabled: pending + VersionAdded: '2.19' + EnforcedStyle: strict + SupportedStyles: + - strict + - link_or_button + Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/ClickLinkOrButtonStyle + Capybara/CurrentPathExpectation: Description: Checks that no expectations are set on Capybara's `current_path`. Enabled: true VersionAdded: '1.18' VersionChanged: '2.0' @@ -54,5 +64,28 @@ Description: Checks for boolean visibility in Capybara finders. Enabled: true VersionAdded: '1.39' VersionChanged: '2.0' Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/VisibilityMatcher + +Capybara/RSpec: + Enabled: true + Include: *1 + +Capybara/RSpec/HaveSelector: + Description: Use `have_css` or `have_xpath` instead of `have_selector`. + Enabled: pending + DefaultSelector: css + VersionAdded: '2.19' + Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RSpec/HaveSelector + +Capybara/RSpec/PredicateMatcher: + Description: Prefer using predicate matcher over using predicate method directly. + Enabled: pending + Strict: true + EnforcedStyle: inflected + AllowedExplicitMatchers: [] + SupportedStyles: + - inflected + - explicit + VersionAdded: '2.19' + Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RSpec/PredicateMatcher