- Add
Capybara/AmbiguousClick
cop and make soft-deprecatedCapybara/ClickLinkOrButtonStyle
cop. If you want to useEnforcedStyle: strict
, useCapybara/AmbiguousClick
cop instead. (@ydah) - Add new
Capybara/FindAllFirst
cop. (@ydah) - Fix an error for
Capybara/RSpec/HaveSelector
when passing no arguments. (@earlopain)
- Fix a false negative for
Capybara/NegationMatcher
when usingto_not
. (@ydah) - Fix a false negative for
Capybara/SpecificFinders
when usingfind(:id, 'some-id')
. (@ydah)
- Change to default
EnforcedStyle: link_or_button
forCapybara/ClickLinkOrButtonStyle
cop. (@ydah) - Fix a false negative for
RSpec/HaveSelector
when first argument is dstr node. (@ydah) - Add new
Capybara/RedundantWithinFind
cop. (@ydah) - Fix an invalid attributes parse when name with multiple
[]
forCapybara/SpecificFinders
andCapybara/SpecificActions
andCapybara/SpecificMatcher
. (@ydah) - Change to default
EnforcedStyle: have_no
forCapybara/NegationMatcher
cop. (@ydah) - Fix a false positive for
Capybara/SpecificMatcher
whentext:
orexact_text:
with regexp. (@ydah)
- Add new
Capybara/RSpec/PredicateMatcher
cop. (@ydah) - Add new
Capybara/RSpec/HaveSelector
cop. (@ydah) - Add new
Capybara/ClickLinkOrButtonStyle
cop. (@ydah) - Fix a false positive for
Capybara/SpecificFinders
whenfind
with kind option. (@ydah) - Fix an incorrect autocorrect for
Capybara/CurrentPathExpectation
. (@ydah) - Drop Ruby 2.6 support. (@ydah)
- Fix an offense message for
Capybara/SpecificFinders
. (@ydah) - Expand
Capybara/NegationMatcher
to supporthave_content
. (@OskarsEzerins) - Fix an incorrect autocorrect for
Capybara/CurrentPathExpectation
when matcher's argument is a method with a argument and no parentheses. (@ydah)
- Fix an incorrect autocorrect for
Capybara/CurrentPathExpectation
. (@ydah) - Fix a false negative for
Capybara/CurrentPathExpectation
when usingmatch
. (@ydah) - Fix a false positive and incorrect autocorrect for
Capybara/SpecificActions
,Capybara/SpecificFinders
andCapybara/SpecificMatcher
. (@ydah)
- Extracted from
rubocop-rspec
into a separate repository for easier use with Minitest/Cucumber. (@pirj)
Previously (see rubocop-rspec's changelist for details)
- Fix a false positive for
Capybara/SpecificMatcher
whenhave_css("a")
without attribute. (@ydah) - Add new
Capybara/NegationMatcher
cop. (@ydah) - Add new
Capybara/SpecificActions
cop. (@ydah) - Fix an error for
Capybara/SpecificFinders
with no parentheses. (@ydah) - Exclude
have_text
andhave_content
that raiseArgumentError
withCapybara/VisibilityMatcher
where:visible
is an invalid option. (@ydah) - Fix a false negative for
Capybara/VisibilityMatcher
with negative matchers. (@ydah) - Fix a false positive for
Capybara/SpecificMatcher
. (@ydah) - Fix a false negative for
Capybara/SpecificMatcher
forhave_field
. (@ydah) - Fix a false positive for
Capybara/SpecificMatcher
when may not have ahref
byhave_link
. (@ydah) - Add new
Capybara/SpecificFinders
cop. (@ydah) - Fix a false positive for
Capybara/SpecificMatcher
when pseudo-classes. (@ydah) - Fix a false positive for
Capybara/SpecificMatcher
. (@ydah) - Add new
Capybara/SpecificMatcher
cop. (@ydah) - Fix
Capybara/CurrentPathExpectation
autocorrect incompatible withStyle/TrailingCommaInArguments
autocorrect. (@ydah) - Fix
FactoryBot/SyntaxMethods
andCapybara/FeatureMethods
to inspect shared groups. (@pirj) - Change namespace of several cops (
Capybara/*
->RSpec/Capybara/*
,FactoryBot/*
->RSpec/FactoryBot/*
,Rails/*
->RSpec/Rails/*
). (@pirj, @bquorning) - Expand
Capybara/VisibilityMatcher
to support more than justhave_selector
. (@twalpole) - Add new
Capybara/VisibilityMatcher
cop. (@aried3r) - Fix
Capybara/CurrentPathExpectation
auto-corrector, to include optionignore_query: true
. (@onumis) - Add autocorrect support for
Capybara/CurrentPathExpectation
cop. (@ypresto) - Fix
Capybara/FeatureMethods
not working when there is require before the spec. (@Darhazer) - Fix false positives in
Capybara/FeatureMethods
when feature methods are used as property names in a factory. (@Darhazer) - Allow configuring enabled methods in
Capybara/FeatureMethods
. (@Darhazer) - Fix false positive in
Capybara/FeatureMethods
. (@Darhazer) - Add
Capybara/CurrentPathExpectation
cop for feature specs, disallowing setting expectations oncurrent_path
. (@timrogers) - Add
RSpec/Capybara
namespace including the first cop for feature specs:Capybara/FeatureMethods
. (@rspeicher)