KEMBAR78
Releases · rubocop/rubocop-rspec · GitHub
Skip to content

Releases: rubocop/rubocop-rspec

RuboCop RSpec v3.7.0

01 Sep 13:34
84ccc76

Choose a tag to compare

  • Mark RSpec/IncludeExamples as SafeAutoCorrect: false. (@yujideveloper)
  • Fix a false positive for RSpec/LeakyConstantDeclaration when defining constants in explicit namespaces. (@naveg)
  • Add support for error matchers (raise_exception and raise_error) to RSpec/Dialect. (@lovro-bikic)
  • Don't register offenses for RSpec/DescribedClass within Data.define blocks. (@lovro-bikic)
  • Add autocorrection support for RSpec/IteratedExpectation for single expectations. (@lovro-bikic)
  • Exclude all cops from inspecting factorybot files, except if explicitly included. (@Mth0158)
  • Fix a false positive for RSpec/ExcessiveDocstringSpacing when receivers are not RSpec methods. (@ydah)

RuboCop RSpec v3.6.0 (RubyKaigi 2025 Edition🍊)

18 Apr 09:31
5fe53ae

Choose a tag to compare

  • Fix false positive in RSpec/Pending, where it would mark the default block it as an offense. (@bquorning)
  • Fix issue when Style/ContextWording is configured with a Prefix being interpreted as a boolean, like on. (@sakuro)
  • Add new RSpec/IncludeExamples cop to enforce using it_behaves_like over include_examples. (@dvandersluis)
  • Change RSpec/ScatteredSetup to allow around hooks to be scattered. (@ydah)
  • Fix an error RSpec/ChangeByZero cop when without expect block. (@lee266)
  • Fix a false positive for RSpec/DescribedClass when SkipBlocks is true and numblocks are used. (@earlopain)

RuboCop RSpec v3.5.0

16 Feb 12:13
4b14015

Choose a tag to compare

  • Don't let RSpec/PredicateMatcher replace respond_to? with two arguments with the RSpec respond_to matcher. (@bquorning)
  • Fix RSpec/PredicateMatcher support for eql and equal matchers. (@bquorning)
  • Pluginfy RuboCop RSpec. (@koic)

RuboCop RSpec v3.4.0

20 Jan 14:26
bc888bb

Choose a tag to compare

  • Fix RSpec/SortMetadata cop to limit sorting to trailing metadata arguments. (@cbliard)
  • Replace RSpec/StringAsInstanceDoubleConstant with RSpec/VerifiedDoubleReference configured to only support constant class references. (@corsonknowles)
  • Fix RSpec/EmptyExampleGroup cop false positive when a simple conditional is used inside an iterator. (@lovro-bikic)

RuboCop RSpec v3.3.0

12 Dec 12:50
4272587

Choose a tag to compare

  • Deprecate top_level_group? method from TopLevelGroup mixin as all of its callers were intentionally removed from Rubocop/RSpec. (@corsonknowles)
  • Fix false positive for RSpec/EmptyMetadata for splat kwargs. (@pirj)

RuboCop RSpec v3.2.0

26 Oct 08:04
50ac5ab

Choose a tag to compare

  • Fix RSpec/VoidExpect to only operate inside an example block. (@corsonknowles)
  • Change RSpec/ContextWording cop to always report an offense when both Prefixes and AllowedPatterns are empty. (@ydah)
  • Add support for and and or compound matchers to RSpec/ChangeByZero cop. (@ydah)

RuboCop RSpec v3.1.0

01 Oct 13:43
5e06176

Choose a tag to compare

  • 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 named raise_exception. (@aarestad)
  • Fix false-positive for RSpec/UnspecifiedException when not_to raise_error is used within a block. (@aarestad, @G-Rath)

RuboCop RSpec v3.0.5

07 Sep 12:16
16cf19c

Choose a tag to compare

  • Fix false-negative and error for RSpec/MetadataStyle when non-literal args are used in metadata in EnforceStyle: hash. (@cbliard)
  • Improve offense message for RSpec/IndexedLet. (@earlopain)

RuboCop RSpec v3.0.4

05 Aug 15:30
ff213ae

Choose a tag to compare

  • Fix false-negative for UnspecifiedException when matcher is chained. (@r7kamura)

RuboCop RSpec v3.0.3

12 Jul 09:03
fe3b66b

Choose a tag to compare

  • Add support for Unicode RIGHT SINGLE QUOTATION MARK in RSpec/ExampleWording. (@jdufresne)
  • Suppress deprecation warning for RSpec/MultipleExpectations, RSpec/MultipleMemoizedHelpers, and RSpec/NestedGroups cops. (@koic)