Releases: rubocop/rubocop-rspec
Releases · rubocop/rubocop-rspec
RuboCop RSpec v2.13.1
Include config/obsoletion.yml in the gemspec. (@hosamaly)
RuboCop RSpec v2.13.0
- Fix
RSpec/FilePath
cop missing mismatched expanded namespace. (@sl4vr) - Add new
AllowConsecutiveOneLiners
(default true) option forRspec/EmptyLineAfterHook
cop. (@ngouy) - Add autocorrect support for
RSpec/EmptyExampleGroup
. (@r7kamura) - Fix
RSpec/ChangeByZero
with compound expressions using&
or|
operators. (@BrianHawley) - Add
RSpec/NoExpectationExample
. (@r7kamura) - Add some expectation methods to default configuration. (@r7kamura)
- Fix a false positive for
RSpec/Capybara/SpecificMatcher
. (@ydah) - Fix a false negative for
RSpec/Capybara/SpecificMatcher
forhave_field
. (@ydah) - Fix a false positive for
RSpec/Capybara/SpecificMatcher
when may not have ahref
byhave_link
. (@ydah) - Add
NegatedMatcher
configuration option toRSpec/ChangeByZero
. (@ydah) - Add new
RSpec/Capybara/SpecificFinders
cop. (@ydah) - Add support for numblocks to
RSpec/AroundBlock
,RSpec/EmptyLineAfterHook
,RSpec/ExpectInHook
,RSpec/HookArgument
,RSpec/HooksBeforeExamples
,RSpec/IteratedExpectation
, andRSpec/NoExpectationExample
. (@ydah) - Fix incorrect documentation URLs when using
rubocop --show-docs-url
. (@r7kamura) - Add
AllowedGroups
configuration option toRSpec/NestedGroups
. (@ydah) - Deprecate
IgnoredPatterns
option in favor of theAllowedPatterns
options. (@ydah) - Add
AllowedPatterns
configuration option toRSpec/ContextWording
. (@ydah) - Add
RSpec/ClassCheck
cop. (@r7kamura) - Fix a false positive for
RSpec/Capybara/SpecificMatcher
when pseudo-classes. (@ydah) - Fix a false negative for
RSpec/SubjectStub
when the subject is declared with thesubject!
method and called by name. (@eikes) - Support
Array.new(n)
onRSpec/FactoryBot/CreateList
cop. (@r7kamura)
RuboCop RSpec v2.12.1
- Fix a false positive for
RSpec/Capybara/SpecificMatcher
. (@ydah)
RuboCop RSpec v2.12.0
- Fix incorrect path suggested by
RSpec/FilePath
cop when second argument contains spaces. (@tejasbubane) - Fix autocorrect for EmptyLineSeparation. (@johnny-miyake)
- Add new
RSpec/Capybara/SpecificMatcher
cop. (@ydah) - Fixed false offense detection in
FactoryBot/CreateList
when a n.times block is including method calls in the factory create arguments. (@ngouy) - Fix error in
RSpec/RSpec/FactoryBot/CreateList
cop for empty block. (@tejasbubane) - Update
RSpec/MultipleExpectations
cop documentation with examples of aggregate_failures use. (@edgibbs) - Declare autocorrect as unsafe for
RSpec/VerifiedDoubleReference
. (@Drowze) - Add new
RSpec/Rails/HaveHttpStatus
cop. (@akiomik)
RuboCop RSpec v2.11.1
- Fix a regression in
RSpec/ExpectChange
flagging chained method calls. (@pirj)
RuboCop RSpec v2.11.0
- Drop Ruby 2.5 support. (@ydah)
- Add new
RSpec/ChangeByZero
cop. (@ydah) - Improve
RSpec/ExpectChange
to detect namespaced and top-level constants. (@M-Yamashita01) - Introduce an amendment to
Metrics/BlockLength
to exclude spec files. (@luke-hill)
RuboCop RSpec v2.10.0
- Fix a false positive for
RSpec/EmptyExampleGroup
when expectations in case statement. (@ydah) - Add
RSpec/VerifiedDoubleReference
cop. (@t3h2mas) - Make
RSpec/BeNil
cop configurable with abe_nil
style and abe
style. (@bquorning) - Fix
Capybara/CurrentPathExpectation
autocorrect incompatible withStyle/TrailingCommaInArguments
autocorrect. (@ydah)
RuboCop RSpec v2.9.0
- Add new
RSpec/BeNil
cop. (@bquorning) - Add new
RSpec/BeEq
cop. (@bquorning)
RuboCop RSpec v2.8.0
- Fix
RSpec/FactoryBot/SyntaxMethods
andRSpec/Capybara/FeatureMethods
to inspect shared groups. (@pirj) - Fix
RSpec/LeadingSubject
failure in non-spec code. (@pirj) - Add bad example to
RSpec/SubjectStub
cop. (@oshiro3) - Replace non-styleguide cops
StyleGuide
attribute withReference
. (@pirj) - Fix
RSpec/SubjectStub
to disallow stubbing of subjects defined in parent example groups. (@pirj)
RuboCop RSpec v2.7.0
- Add new
RSpec/FactoryBot/SyntaxMethods
cop. (@leoarnold) - Exclude
task
type specs fromRSpec/DescribeClass
cop. (@harry-graham)