Releases: rubocop/rubocop-rspec
Releases · rubocop/rubocop-rspec
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)
RuboCop RSpec v2.6.0
- Fix merging RSpec DSL configuration from third-party gems. (@pirj)
- Fix
RSpec/ExcessiveDocstringSpacing
false positive for multi-line indented strings. (@G-Rath) - Fix
Include
configuration for sub-departments. (@pirj) - Ignore heredocs in
RSpec/ExcessiveDocstringSpacing
. (@G-Rath) - Stop
RSpec/ExampleWording
from trying to correct heredocs. (@G-Rath) - Add autocorrect support for
RSpec/VariableDefinition
. (@r7kamura)
RuboCop RSpec v2.5.0
- Declare autocorrect as unsafe for
ExpectChange
. (@francois-ferrandis) - Fix each example for
RSpec/HookArgument
. (@lokhi) - Exclude unrelated Rails directories from
RSpec/DescribeClass
. (@MothOnMars) - Add
RSpec/ExcessiveDocstringSpacing
cop. (@G-Rath) - Add
RSpec/SubjectDeclaration
cop. (@dswij) - Fix excessive whitespace removal in
RSpec/EmptyHook
autocorrection. (@pirj) - Bump RuboCop requirement to v1.19.0. (@pirj)
- Fix false positive in
RSpec/IteratedExpectation
when there is single, non-expectation statement in the block body. (@Darhazer)