Releases: rubocop/rubocop-rspec
Releases · rubocop/rubocop-rspec
RuboCop RSpec v1.38.0
- 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
- Improve message and description of
FactoryBot/FactoryClassName
. (@ybiquitous) - Fix
FactoryBot/FactoryClassName
to ignoreHash
andOpenStruct
. (@jfragoulis)
RuboCop RSpec v1.37.0
- 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 flaggingskip
with string values. (@pirj) - Add
AllowedExplicitMatchers
config option forRSpec/PredicateMatcher
. (@mkrawc) - Add
FactoryBot/FactoryClassName
cop. (@jfragoulis)
RuboCop RSpec v1.36.0
- Fix
RSpec/DescribedClass
's error whendescribed_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 incontext
. (@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 optionignore_query: true
. (@onumis) - Fix
RSpec/Focus
detecting mixed array/hash metadata. (@dgollahon) - Fix
RSpec/Focus
to also detectpending
examples. (@dgollahon)
RuboCop RSpec v1.35.0
- Add
RSpec/ImplicitBlockExpectation
cop. (@pirj)
RuboCop RSpec v1.34.1
- Fix
RSpec/DescribedClass
's error when a local variable is part of the namespace. (@pirj)
RuboCop RSpec v1.34.0
- Remove
AggregateFailuresByDefault
config option ofRSpec/MultipleExpectations
. (@pirj) - Add
RSpec/LeakyConstantDeclaration
cop. (@jonatas, @pirj) - Improve
aggregate_failures
metadata detection ofRSpec/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
- Let
RSpec/DescribedClass
passStruct
instantiation closures. (@schmijos) - Fixed
RSpec/ContextWording
missingcontext
s 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
- Add
RSpec/Yield
cop, suggesting using theand_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 ofRSpec.describe
withfocus: true
. (@Darhazer) - Fixed
RSpec/Pending
not flagging some cases ofRSpec.describe
with:skip
. (@Darhazer) - Fix false positive in
RSpec/ReceiveCounts
when method nameexactly
,at_least
orat_most
is used along withtimes
, without being an RSpec API. (@Darhazer)
RuboCop RSpec v1.31.0
- Add
IgnoreSharedExamples
option forRSpec/NamedSubject
. (@RST-J) - Add autocorrect support for
Capybara/CurrentPathExpectation
cop. (@ypresto) - Add support for built-in
exists
matcher forRSpec/PredicateMatcher
cop. (@mkenyon) SingleArgumentMessageChain
no longer reports an array as it's only argument as an offense. (@Darhazer)