Releases: rubocop/rubocop-rspec
Releases · rubocop/rubocop-rspec
RuboCop RSpec v3.7.0
- Mark
RSpec/IncludeExamplesasSafeAutoCorrect: false. (@yujideveloper) - Fix a false positive for
RSpec/LeakyConstantDeclarationwhen defining constants in explicit namespaces. (@naveg) - Add support for error matchers (
raise_exceptionandraise_error) toRSpec/Dialect. (@lovro-bikic) - Don't register offenses for
RSpec/DescribedClasswithinData.defineblocks. (@lovro-bikic) - Add autocorrection support for
RSpec/IteratedExpectationfor single expectations. (@lovro-bikic) - Exclude all cops from inspecting factorybot files, except if explicitly included. (@Mth0158)
- Fix a false positive for
RSpec/ExcessiveDocstringSpacingwhen receivers are not RSpec methods. (@ydah)
RuboCop RSpec v3.6.0 (RubyKaigi 2025 Edition🍊)
- Fix false positive in
RSpec/Pending, where it would mark the default blockitas an offense. (@bquorning) - Fix issue when
Style/ContextWordingis configured with a Prefix being interpreted as a boolean, likeon. (@sakuro) - Add new
RSpec/IncludeExamplescop to enforce usingit_behaves_likeoverinclude_examples. (@dvandersluis) - Change
RSpec/ScatteredSetupto allowaroundhooks to be scattered. (@ydah) - Fix an error
RSpec/ChangeByZerocop when without expect block. (@lee266) - Fix a false positive for
RSpec/DescribedClasswhenSkipBlocksis true and numblocks are used. (@earlopain)
RuboCop RSpec v3.5.0
- Don't let
RSpec/PredicateMatcherreplacerespond_to?with two arguments with the RSpecrespond_tomatcher. (@bquorning) - Fix
RSpec/PredicateMatchersupport foreqlandequalmatchers. (@bquorning) - Pluginfy RuboCop RSpec. (@koic)
RuboCop RSpec v3.4.0
- Fix
RSpec/SortMetadatacop to limit sorting to trailing metadata arguments. (@cbliard) - Replace
RSpec/StringAsInstanceDoubleConstantwithRSpec/VerifiedDoubleReferenceconfigured to only support constant class references. (@corsonknowles) - Fix
RSpec/EmptyExampleGroupcop false positive when a simple conditional is used inside an iterator. (@lovro-bikic)
RuboCop RSpec v3.3.0
- Deprecate
top_level_group?method fromTopLevelGroupmixin 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/VoidExpectto only operate inside an example block. (@corsonknowles) - Change
RSpec/ContextWordingcop to always report an offense when bothPrefixesandAllowedPatternsare empty. (@ydah) - Add support for
andandorcompound matchers toRSpec/ChangeByZerocop. (@ydah)
RuboCop RSpec v3.1.0
- Add
RSpec/StringAsInstanceDoubleConstantto check for and correct strings used as instance_doubles. (@corsonknowles) - Fix false-positive for
RSpec/UnspecifiedExceptionwhen a method is literally namedraise_exception. (@aarestad) - Fix false-positive for
RSpec/UnspecifiedExceptionwhennot_to raise_erroris used within a block. (@aarestad, @G-Rath)
RuboCop RSpec v3.0.5
- Fix false-negative and error for
RSpec/MetadataStylewhen 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
UnspecifiedExceptionwhen 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/NestedGroupscops. (@koic)