Releases: rubocop/rubocop-rspec
Releases · rubocop/rubocop-rspec
RuboCop RSpec v2.24.0
- Split
RSpec/FilePath
intoRSpec/SpecFilePathSuffix
andRSpec/SpecFilePathFormat
.RSpec/FilePath
cop is enabled by default, the two new cops are pending and need to be enabled explicitly. (@ydah) - Add new
RSpec/Eq
cop. (@ydah) - Add
RSpec/MetadataStyle
andRSpec/EmptyMetadata
cops. (@r7kamura) - Add support
RSpec/Rails/HttpStatus
whenhave_http_status
with string argument. (@ydah) - Fix an infinite loop error when
RSpec/ExcessiveDocstringSpacing
finds a description with non-ASCII leading/trailing whitespace. (@bcgraham) - Fix an incorrect autocorrect for
RSpec/ReceiveMessages
when return values declared between stubs. (@marocchino) - Fix a false positive
RSpec/Focus
when chained method call and inside define method. (@ydah)
RuboCop RSpec v2.23.2
- Fix an incorrect autocorrect for
RSpec/ReceiveMessages
when method is only non-word character. (@marocchino) - Fix a false positive for
RSpec/ReceiveMessages
when return with splat. (@marocchino)
RuboCop RSpec v2.23.1
- Mark to
Safe: false
forRSpec/Rails/NegationBeValid
cop. (@ydah) - Declare autocorrect as unsafe for
RSpec/ReceiveMessages
. (@bquorning)
RuboCop RSpec v2.23.0
- Add new
RSpec/Rails/NegationBeValid
cop. (@ydah) - Fix a false negative for
RSpec/ExcessiveDocstringSpacing
when finds description with em space. (@ydah) - Fix a false positive for
RSpec/EmptyExampleGroup
when example group with examples defined inif
branch inside iterator. (@ydah) - Update the message output of
RSpec/ExpectActual
to include the word 'value'. (@corydiamand) - Fix a false negative for
RSpec/Pending
whenit
without body. (@ydah) - Add new
RSpec/ReceiveMessages
cop. (@ydah) - Change default.yml path to use
**/spec/*
instead ofspec/*
. (@ydah) - Add
AllowedIdentifiers
andAllowedPatterns
configuration option toRSpec/IndexedLet
. (@ydah) - Fix
RSpec/NamedSubject
when block has no body. (@splattael) - Fix
RSpec/LetBeforeExamples
autocorrect incompatible withRSpec/ScatteredLet
autocorrect. (@ydah) - Update
RSpec/Focus
to supportshared_context
andshared_examples
(@tmaier)
RuboCop RSpec v2.22.0
- Extract factory_bot cops to a separate repository,
rubocop-factory_bot
. Therubocop-factory_bot
repository is a dependency ofrubocop-rspec
and the factory_bot cops are aliased (RSpec/FactoryBot/Foo
==FactoryBot/Foo
) until v3.0 is released, so the change will be invisible to users until then. (@ydah)
RuboCop RSpec v2.21.0
- Fix a false positive in
RSpec/IndexedLet
with suffixes after index-like numbers. (@pirj) - Fix an error for
RSpec/Rails/HaveHttpStatus
with comparison with strings containing non-numeric characters. (@ydah) - Fix an error for
RSpec/MatchArray
whenmatch_array
with no argument. (@ydah) - Add support
a_block_changing
andchanging
forRSpec/ChangeByZero
. (@ydah) - Drop Ruby 2.6 support. (@ydah)
RuboCop RSpec v2.20.0
- Add new
RSpec/IndexedLet
cop. (@dmitrytsepelev) - Add new
RSpec/BeEmpty
cop. (@ydah, @bquorning) - Add autocorrect support for
RSpec/ScatteredSetup
. (@ydah) - Add support
be_status
style forRSpec/Rails/HttpStatus
. (@ydah) - Add support for shared example groups to
RSpec/EmptyLineAfterExampleGroup
. (@pirj) - Add support for
RSpec/HaveHttpStatus
when usingresponse.code
. (@ydah) - Fix order of expected and actual in correction for
RSpec/Rails/MinitestAssertions
(@mvz) - Fix a false positive for
RSpec/DescribedClassModuleWrapping
when RSpec.describe numblock is nested within a module. (@ydah) - Fix a false positive for
RSpec/FactoryBot/ConsistentParenthesesStyle
inside&&
,||
and:?
whenomit_parentheses
is on (@dmitrytsepelev) - Fix a false positive for
RSpec/PendingWithoutReason
when pending/skip has a reason inside an example group. (@ydah) - Fix a false negative for
RSpec/RedundantAround
when redundant numblockaround
. (@ydah) - Change
RSpec/ContainExactly
to ignore calls with no arguments, and changeRSpec/MatchArray
to ignore calls with an empty array literal argument. (@ydah, @bquorning) - Make
RSpec/MatchArray
andRSpec/ContainExactly
pending. (@ydah)
RuboCop RSpec v2.19.0
- Add new
RSpec/PendingBlockInsideExample
cop. (@ydah) - Add new
RSpec/RedundantAround
cop. (@r7kamura) - Add new
RSpec/Rails/TravelAround
cop. (@r7kamura) - Add new
RSpec/ContainExactly
andRSpec/MatchArray
cops. (@faucct) - Rename
RSpec/PendingBlockInsideExample
cop toRSpec/SkipBlockInsideExample
. (@pirj) - Fix a false positive for
RSpec/ContextWording
when context is interpolated string literal or execute string. (@ydah) - Fix a false positive for
RSpec/DescribeMethod
when multi-line describe without#
and.
at the beginning. (@ydah, @pirj) - Fix a false positive for
RSpec/VariableName
when inside non-spec code. (@ydah) - Fix a false positive for
RSpec/VariableDefinition
when inside non-spec code. (@ydah) - Fix a false positive for
RSpec/PendingWithoutReason
when not inside example and pending/skip with block. (@ydah, @pirj) - Fix a false positive for
RSpec/PendingWithoutReason
whenskip
is passed a block inside example. (@ydah, @pirj) - Fix an incorrect autocorrect for
RSpec/VerifiedDoubleReference
when namespaced class. (@ydah) - Deprecate
send_pattern
/block_pattern
/numblock_pattern
helpers in favour of using node pattern explicitly. (@pirj, @ydah)
RuboCop RSpec v2.18.1
- Add
rubocop-capybara
version constraint to prevent sudden cop enabling when it hits 3.0. (@pirj)
RuboCop RSpec v2.18.0
- Extract Capybara cops to a separate repository,
rubocop-capybara
. Therubocop-capybara
repository is a dependency ofrubocop-rspec
and the Capybara cops are aliased (RSpec/Capybara/Foo
==Capybara/Foo
) until v3.0 is released, so the change will be invisible to users until then. (@pirj)