Releases: rubocop/rubocop-rspec
Releases · rubocop/rubocop-rspec
RuboCop RSpec v1.44.1
- Relax
rubocop-ast
version constraint. (@PhilCoggins)
RuboCop RSpec v1.44.0
- Move our documentation from rubocop-rspec.readthedocs.io to docs.rubocop.org/rubocop-rspec. (@bquorning)
- Add
RSpec/RepeatedIncludeExample
cop. (@biinari) - Add
RSpec/StubbedMock
cop. (@bquorning, @pirj) - Add
IgnoredMetadata
configuration option toRSpec/DescribeClass
. (@Rafix02) - Fix false positives in
RSpec/EmptyExampleGroup
. (@pirj) - Fix a false positive for
RSpec/EmptyExampleGroup
when example is defined in anif
branch. (@koic)
RuboCop RSpec v1.43.2
RuboCop RSpec v1.43.1
Fix RSpec/FilePath
when checking a file defining e.g. an empty class. (@bquorning)
RuboCop RSpec v1.43.0
- Add a new base cop class
::RuboCop::Cop::RSpec::Base
. The old base class::RuboCop::Cop::RSpec::Cop
is deprecated, and will be removed in the next major release. (@bquorning) - Add support for subject detection after includes and example groups in
RSpec/LeadingSubject
. (@pirj) - Ignore trailing punctuation in context description prefix. (@elliterate)
- Relax
RSpec/VariableDefinition
cop so interpolated and multiline strings are accepted even when configured to enforce thesymbol
style. (@bquorning) - Fix
RSpec/EmptyExampleGroup
to flag example groups with examples in invalid scopes. (@mlarraz) - Fix
RSpec/EmptyExampleGroup
to ignore examples groups with examples defined inside iterators. (@pirj) - Improve
RSpec/NestedGroups
,RSpec/FilePath
,RSpec/DescribeMethod
,RSpec/MultipleDescribes
,RSpec/DescribeClass
's top-level example group detection. (@pirj) - Add detection of
let!
with a block-pass or a string literal toRSpec/LetSetup
. (@pirj) - Add
IgnoredPatterns
configuration option toRSpec/VariableName
. (@jtannas) - Add
RSpec/MultipleMemoizedHelpers
cop. (@mockdeep)
RuboCop RSpec v1.42.0
- Update RuboCop dependency to 0.87.0 because of changes to internal APIs. (@bquorning, @Darhazer)
RuboCop RSpec v1.41.0
- Extend the list of Rails spec types for
RSpec/DescribeClass
. (@pirj) - Fix
FactoryBot/AttributeDefinedStatically
to allow#traits_for_enum
without a block. (@harrylewis) - Improve the performance of
FactoryBot/AttributeDefinedStatically
,RSpec/InstanceVariable
,RSpec/LetSetup
,RSpec/NestedGroups
andRSpec/ReturnFromStub
. (@andrykonchin)
RuboCop RSpec v1.40.0
- Add new
RSpec/VariableName
cop. (@tejasbubane) - Add new
RSpec/VariableDefinition
cop. (@tejasbubane) - Expand
Capybara/VisibilityMatcher
to support more than justhave_selector
. (@twalpole) - Add new
SpecSuffixOnly
option toRSpec/FilePath
cop. (@zdennis) - Allow
RSpec/RepeatedExampleGroupBody
to differ only by described_class. (@robotdana) - Fix
RSpec/FilePath
detection across sibling directories. (@rolfschmidt) - Improve the performance of
RSpec/SubjectStub
by an order of magnitude. (@andrykonchin)
RuboCop RSpec v1.39.0
- Fix
RSpec/FilePath
detection when absolute path includes test subject. (@eitoball) - Add new
Capybara/VisibilityMatcher
cop. (@aried3r) - Ignore String constants by
RSpec/Describe
. (@AlexWayfer) - Drop support for Ruby 2.3. (@bquorning)
- Fix multiple cops to detect
let
with proc argument. (@tejasbubane) - Add autocorrect support for
RSpec/ScatteredLet
. (@Darhazer) - Add new
RSpec/EmptyHook
cop. (@tejasbubane)
RuboCop RSpec v1.38.1
- Fix
RSpec/RepeatedDescription
to detect descriptions with interpolation and methods. (@lazycoder9)