config/default.yml in rubocop-capybara-2.19.0 vs config/default.yml in rubocop-capybara-2.20.0
- old
+ new
@@ -8,17 +8,18 @@
- "**/test/**/*"
- "**/*_steps.rb"
- "**/features/step_definitions/**/*"
Capybara/ClickLinkOrButtonStyle:
- Description: Checks for click button or link style.
+ Description: Checks for methods of button or link clicks.
Enabled: pending
VersionAdded: '2.19'
- EnforcedStyle: strict
+ VersionChanged: '2.20'
+ EnforcedStyle: link_or_button
SupportedStyles:
- - strict
- link_or_button
+ - strict
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
@@ -34,14 +35,21 @@
Capybara/NegationMatcher:
Description: Enforces use of `have_no_*` or `not_to` for negated expectations.
Enabled: pending
VersionAdded: '2.14'
- EnforcedStyle: not_to
+ VersionChanged: '2.20'
+ EnforcedStyle: have_no
SupportedStyles:
- have_no
- not_to
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/NegationMatcher
+
+Capybara/RedundantWithinFind:
+ Description: Checks for redundant `within find(...)` calls.
+ Enabled: pending
+ VersionAdded: '2.20'
+ Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RedundantWithinFind
Capybara/SpecificActions:
Description: Checks for there is a more specific actions offered by Capybara.
Enabled: pending
VersionAdded: '2.14'