Releases: rubocop/rubocop-rspec
Releases · rubocop/rubocop-rspec
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)
RuboCop RSpec v2.4.0
- Update
RSpec/FilePath
to check suffix when given a non-constant top-level node (e.g. features). (@topalovic) - Add missing documentation for
single_statement_only
style ofRSpec/ImplicitSubject
cop. (@tejasbubane) - Fix an exception in
DescribedClass
when accessing a constant on a variable in a spec that is nested in a namespace. (@rrosenblum) - Add new
RSpec/IdenticalEqualityAssertion
cop. (@tejasbubane) - Add
RSpec/Rails/AvoidSetupHook
cop. (@paydaylight) - Fix false negative in
RSpec/ExpectChange
cop with block style and chained method call. (@tejasbubane)
RuboCop RSpec v2.3.0
- Allow
RSpec/ContextWording
to accept multi-word prefixes. (@hosamaly) - Drop support for ruby 2.4. (@bquorning)
- Add
CountAsOne
configuration option toRSpec/ExampleLength
. (@stephannv) - Fix a false positive for
RSpec/RepeatedExampleGroupBody
whenpending
orskip
have argument(s). (@Tietew)
RuboCop RSpec v2.2.0
- Fix
HooksBeforeExamples
,LeadingSubject
,LetBeforeExamples
andScatteredLet
autocorrection to take into account inline comments and comments immediately before the moved node. (@Darhazer) - Improve rubocop-rspec performance. (@Darhazer, @bquorning)
- Include
Enabled: true
to prevent a mismatched configuration parameter warning whenRSpec
cops are explicitly enabled in the user configuration. (@pirj)
RuboCop RSpec v2.1.0
- Fix
RSpec/FilePath
false positive for relative file path runs with long namespaces. (@ahukkanen) - Update
RSpec/Focus
to have auto-correction. (@dvandersluis)
RuboCop RSpec v2.0.1
- Fixed infinite loop in
RSpec/ExpectActual
autocorrection when both expected and actual values are literals. (@Darhazer)
RuboCop RSpec v2.0.0
This a major release, so please consider all changes “potentially breaking”. Read more about upgrading in our Upgrade to Version 2.x document.
- Remove deprecated class
::RuboCop::Cop::RSpec::Cop
. (@bquorning) - Retire
RSpec/InvalidPredicateMatcher
cop. (@pirj) - Remove the code responsible for filtering files to inspect. (@pirj)
- Make RSpec language elements configurable. (@sl4vr)
- Remove
CustomIncludeMethods
RSpec/EmptyExampleGroup
option in favour of the new RSpec DSL configuration. (@pirj) - Enabled pending cop (
RSpec/StubbedMock
). (@pirj)
See also https://github.com/rubocop-hq/rubocop-rspec/releases/v2.0.0.pre
RuboCop RSpec v2.0.0.pre
- Update RuboCop dependency to v1.0.0. (@bquorning)
- (Potentially breaking) Change namespace of several cops (
Capybara/*
→RSpec/Capybara/*
,FactoryBot/*
→RSpec/FactoryBot/*
,Rails/*
→RSpec/Rails/*
). (@pirj, @bquorning)