chore(deps): update dependency rubocop-rspec to v3
This MR contains the following updates:
Package | Update | Change |
---|---|---|
rubocop-rspec (changelog) | major |
2.25.0 -> 3.0.2
|
Release Notes
rubocop/rubocop-rspec (rubocop-rspec)
v3.0.2
- Fix wrong autocorrect for
RSpec/ScatteredSetup
when hook contains heredoc. ([@earlopain]) - Fix false negative for
RSpec/PredicateMatcher
when expectation contains custom failure message. ([@earlopain]) - Facilitate the 3.0 upgrade flow with proper extracted cop messages. ([@jeppester])
v3.0.1
- Bump RuboCop requirement to +1.61. ([@ydah])
v3.0.0
- Remove extracted cops in
Capybara
,FactoryBot
andRails
departments. ([@ydah]) - Remove
RuboCop::RSpec::Language::NodePattern
. ([@ydah]) - Remove
RSpec/FilePath
cop. ([@ydah]) - Remove
RSpec/Capybara/FeatureMethods
cop. If you are using this cop, change it to useRSpec/Dialect
. ([@ydah]) - Add new
RSpec/MissingExpectationTargetMethod
cop. ([@krororo]) - Fix an error for
RSpec/ScatteredSetup
when one of the hooks is an empty block. ([@earlopain])
These previously pending cops are now enabled by default: RSpec/BeEmpty
, RSpec/BeEq
, RSpec/BeNil
, RSpec/ChangeByZero
, RSpec/ClassCheck
, RSpec/ContainExactly
, RSpec/DuplicatedMetadata
, RSpec/EmptyMetadata
, RSpec/EmptyOutput
, RSpec/Eq
, RSpec/ExcessiveDocstringSpacing
, RSpec/ExpectInLet
, RSpec/IdenticalEqualityAssertion
, RSpec/IndexedLet
, RSpec/IsExpectedSpecify
, RSpec/MatchArray
, RSpec/MetadataStyle
, RSpec/NoExpectationExample
, RSpec/PendingWithoutReason
, RSpec/ReceiveMessages
, RSpec/RedundantAround
, RSpec/RedundantPredicateMatcher
, RSpec/RemoveConst
, RSpec/RepeatedSubjectCall
, RSpec/SkipBlockInsideExample
, RSpec/SortMetadata
, RSpec/SpecFilePathFormat
, RSpec/SpecFilePathSuffix
, RSpec/SubjectDeclaration
, RSpec/UndescriptiveLiteralsDescription
, and RSpec/VerifiedDoubleReference
.
Read more about how to upgrade in https://docs.rubocop.org/rubocop-rspec/upgrade_to_version_3.html
v2.31.0
- Support
AutoCorrect: contextual
option for LSP. ([@ydah])
v2.30.0
- Add new
RSpec/ExpectInLet
cop. ([@yasu551])
v2.29.2
- Fix beginless and endless range bug for RepeatedIncludeExample cop. ([@hasghari])
- Fix a false positive for
RSpec/RepeatedSubjectCall
when subject is used as argument to function call. ([@K-S-A])
v2.29.1
- Fix an error in the default configuration. ([@ydah])
v2.29.0
- Fix an autocorrect error for
RSpec/ExpectActual
. ([@bquorning]) - Add new
RSpec/UndescriptiveLiteralsDescription
cop. ([@ydah]) - Add new
RSpec/EmptyOutput
cop. ([@bquorning])
v2.28.0
- Extract RSpec Rails cops to a separate repository,
rubocop-rspec_rails
. Therubocop-rspec_rails
repository is a dependency ofrubocop-rspec
and the cops related to rspec-rails are aliased (RSpec/Rails/Foo
==RSpecRails/Foo
) until v3.0 is released, so the change will be invisible to users until then. ([@ydah])
v2.27.1
- Fix a false positive for
RSpec/RepeatedSubjectCall
whensubject.method_call
. ([@ydah]) - Add configuration option
OnlyStaticConstants
toRSpec/DescribedClass
. ([@ydah])
v2.27.0
- Add new
RSpec/IsExpectedSpecify
cop. ([@ydah]) - Add new
RSpec/RepeatedSubjectCall
cop. ([@drcapulet]) - Add support for
assert_true
,assert_false
,assert_not_equal
,assert_not_nil
,*_empty
,*_predicate
,*_kind_of
,*_in_delta
,*_match
,*_instance_of
and*_includes
assertions inRSpec/Rails/MinitestAssertions
. ([@ydah], [@G-Rath]) - Support asserts with messages in
Rspec/BeEmpty
. ([@G-Rath]) - Fix a false positive for
RSpec/ExpectActual
when used with rspec-rails routing matchers. ([@naveg]) - Add configuration option
ResponseMethods
toRSpec/Rails/HaveHttpStatus
. ([@ydah]) - Fix a false negative for
RSpec/DescribedClass
when class with constant. ([@ydah]) - Fix a false positive for
RSpec/ExampleWithoutDescription
whenspecify
with multi-line block and missing description. ([@ydah]) - Fix an incorrect autocorrect for
RSpec/ChangeByZero
when compound expectations with line break before.by(0)
. ([@ydah])
v2.26.1
- Fix an error for
RSpec/SharedExamples
when using examples without argument. ([@ydah])
v2.26.0
- Add new
RSpec/RedundantPredicateMatcher
cop. ([@ydah]) - Add new
RSpec/RemoveConst
cop. ([@swelther]) - Add support for correcting "it will" (future tense) for
RSpec/ExampleWording
. ([@jdufresne]) - Add support for
symbol
style forRSpec/SharedExamples
. ([@jessieay]) - Ensure
PendingWithoutReason
can detect violations inside shared groups. ([@robinaugh])
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.