Skip to content

Releases: rubocop/rubocop-rspec

RuboCop RSpec v1.38.0

11 Feb 07:51
9bce008
Compare
Choose a tag to compare
  • Fix RSpec/InstanceVariable detection inside custom matchers. (@pirj)
  • Fix RSpec/ScatteredSetup to distinguish hooks with different metadata. (@pirj)
  • Add autocorrect support for RSpec/ExpectActual cop. (@dduugg, @pirj)
  • Add RSpec/RepeatedExampleGroupBody cop. (@lazycoder9)
  • Add RSpec/RepeatedExampleGroupDescription cop. (@lazycoder9)
  • Add block name and other lines to RSpec/ScatteredSetup message. (@elebow)
  • Fix RSpec/RepeatedDescription to take into account example metadata. (@lazycoder9)

RuboCop RSpec v1.37.1

16 Dec 12:16
b389828
Compare
Choose a tag to compare
  • Improve message and description of FactoryBot/FactoryClassName. (@ybiquitous)
  • Fix FactoryBot/FactoryClassName to ignore Hash and OpenStruct. (@jfragoulis)

RuboCop RSpec v1.37.0

25 Nov 08:00
ed669cd
Compare
Choose a tag to compare
  • Implement RSpec/DescribedClassModuleWrapping to disallow RSpec statements within a module. (@kellysutton)
  • Fix documentation rake task to support Rubocop 0.75. (@nickcampbell18)
  • Fix RSpec/SubjectStub to detect implicit subjects stubbed. (@QQism)
  • Fix RSpec/Pending not flagging skip with string values. (@pirj)
  • Add AllowedExplicitMatchers config option for RSpec/PredicateMatcher. (@mkrawc)
  • Add FactoryBot/FactoryClassName cop. (@jfragoulis)

RuboCop RSpec v1.36.0

27 Sep 10:34
0719dcf
Compare
Choose a tag to compare
  • Fix RSpec/DescribedClass's error when described_class is used as part of a constant. (@pirj)
  • Fix RSpec/ExampleWording autocorrect of multi-line docstrings. (@pirj)
  • Add RSpec/ContextMethod cop, to detect method names in context. (@geniou)
  • Update RuboCop dependency to 0.68.1 with support for children matching node pattern syntax. (@pirj)
  • Add RSpec/EmptyLineAfterExample cop to check that there is an empty line after example blocks. (@pirj)
  • Fix Capybara/CurrentPathExpectation auto-corrector, to include option ignore_query: true. (@onumis)
  • Fix RSpec/Focus detecting mixed array/hash metadata. (@dgollahon)
  • Fix RSpec/Focus to also detect pending examples. (@dgollahon)

RuboCop RSpec v1.35.0

02 Aug 13:29
f5edab1
Compare
Choose a tag to compare
  • Add RSpec/ImplicitBlockExpectation cop. (@pirj)

RuboCop RSpec v1.34.1

31 Jul 11:50
2475a64
Compare
Choose a tag to compare
  • Fix RSpec/DescribedClass's error when a local variable is part of the namespace. (@pirj)

RuboCop RSpec v1.34.0

23 Jul 08:41
bcb7ce2
Compare
Choose a tag to compare
  • Remove AggregateFailuresByDefault config option of RSpec/MultipleExpectations. (@pirj)
  • Add RSpec/LeakyConstantDeclaration cop. (@jonatas, @pirj)
  • Improve aggregate_failures metadata detection of RSpec/MultipleExpectations. (@pirj)
  • Improve RSpec/SubjectStub detection and message. (@pirj)
  • Change message of RSpec/LetSetup cop to be more descriptive. (@foton)
  • Improve RSpec/ExampleWording to handle interpolated example messages. (@nc-holodakg)
  • Improve detection by allowing the use of RSpec as a top-level constant. (@pirj)
  • Fix RSpec/DescribedClass's incorrect detection. (@pirj)
  • Improve RSpec/DescribedClass's ability to detect inside modules and classes. (@pirj)

RuboCop RSpec v1.33.0

13 May 10:04
23b6ccb
Compare
Choose a tag to compare
  • Let RSpec/DescribedClass pass Struct instantiation closures. (@schmijos)
  • Fixed RSpec/ContextWording missing contexts with metadata. (@pirj)
  • Fix FactoryBot/AttributeDefinedStatically not working with an explicit receiver. (@composerinteralia)
  • Add RSpec/Dialect enforces custom RSpec dialects. (@gsamokovarov)
  • Fix redundant blank lines in RSpec/MultipleSubjects's autocorrect. (@pirj)
  • Drop support for ruby 2.2. (@bquorning)

RuboCop RSpec v1.32.0

27 Jan 12:02
1996b36
Compare
Choose a tag to compare
  • Add RSpec/Yield cop, suggesting using the and_yield method when stubbing a method, accepting a block. (@Darhazer)
  • Fix FactoryBot/CreateList autocorrect crashing when the factory is called with a block=. (@Darhazer)
  • Fixed RSpec/Focus not flagging some cases of RSpec.describe with focus: true. (@Darhazer)
  • Fixed RSpec/Pending not flagging some cases of RSpec.describe with :skip. (@Darhazer)
  • Fix false positive in RSpec/ReceiveCounts when method name exactly, at_least or at_most is used along with times, without being an RSpec API. (@Darhazer)

RuboCop RSpec v1.31.0

02 Jan 10:50
5e770c8
Compare
Choose a tag to compare
  • Add IgnoreSharedExamples option for RSpec/NamedSubject. (@RST-J)
  • Add autocorrect support for Capybara/CurrentPathExpectation cop. (@ypresto)
  • Add support for built-in exists matcher for RSpec/PredicateMatcher cop. (@mkenyon)
  • SingleArgumentMessageChain no longer reports an array as it's only argument as an offense. (@Darhazer)