Releases: rubocop/rubocop-rspec
RuboCop RSpec v3.3.0
- Deprecate
top_level_group?
method fromTopLevelGroup
mixin as all of its callers were intentionally removed fromRubocop/RSpec
. (@corsonknowles) - Fix false positive for RSpec/EmptyMetadata for splat kwargs. (@pirj)
RuboCop RSpec v3.2.0
- Fix
RSpec/VoidExpect
to only operate inside an example block. (@corsonknowles) - Change
RSpec/ContextWording
cop to always report an offense when bothPrefixes
andAllowedPatterns
are empty. (@ydah) - Add support for
and
andor
compound matchers toRSpec/ChangeByZero
cop. (@ydah)
RuboCop RSpec v3.1.0
- Add
RSpec/StringAsInstanceDoubleConstant
to check for and correct strings used as instance_doubles. (@corsonknowles) - Fix false-positive for
RSpec/UnspecifiedException
when a method is literally namedraise_exception
. (@aarestad) - Fix false-positive for
RSpec/UnspecifiedException
whennot_to raise_error
is used within a block. (@aarestad, @G-Rath)
RuboCop RSpec v3.0.5
- Fix false-negative and error for
RSpec/MetadataStyle
when non-literal args are used in metadata inEnforceStyle: hash
. (@cbliard) - Improve offense message for
RSpec/IndexedLet
. (@earlopain)
RuboCop RSpec v3.0.4
- Fix false-negative for
UnspecifiedException
when matcher is chained. (@r7kamura)
RuboCop RSpec v3.0.3
- Add support for Unicode RIGHT SINGLE QUOTATION MARK in
RSpec/ExampleWording
. (@jdufresne) - Suppress deprecation warning for
RSpec/MultipleExpectations
,RSpec/MultipleMemoizedHelpers
, andRSpec/NestedGroups
cops. (@koic)
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)
RuboCop RSpec v3.0.1
- Bump RuboCop requirement to +1.61. (@ydah)
RuboCop RSpec 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
RuboCop RSpec v3.0.0.pre
- 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) - Enable all pending cops. (@bquorning)
- Add new
RSpec/MissingExpectationTargetMethod
cop. (@krororo) - Fix an error for
RSpec/ScatteredSetup
when one of the hooks is an empty block. (@earlopain)
Read more about how to upgrade in https://docs.rubocop.org/rubocop-rspec/upgrade_to_version_3.html