Code style checking for RSpec files.
MIT License
Bot releases are visible (Hide)
Published by bquorning over 2 years ago
RSpec/BeNil
cop. (@bquorning)RSpec/BeEq
cop. (@bquorning)Published by bquorning over 2 years ago
RSpec/FactoryBot/SyntaxMethods
and RSpec/Capybara/FeatureMethods
to inspect shared groups. (@pirj)RSpec/LeadingSubject
failure in non-spec code. (@pirj)RSpec/SubjectStub
cop. (@oshiro3)StyleGuide
attribute with Reference
. (@pirj)RSpec/SubjectStub
to disallow stubbing of subjects defined in parent example groups. (@pirj)Published by bquorning almost 3 years ago
RSpec/FactoryBot/SyntaxMethods
cop. (@leoarnold)task
type specs from RSpec/DescribeClass
cop. (@harry-graham)Published by bquorning almost 3 years ago
RSpec/ExcessiveDocstringSpacing
false positive for multi-line indented strings. (@G-Rath)Include
configuration for sub-departments. (@pirj)RSpec/ExcessiveDocstringSpacing
. (@G-Rath)RSpec/ExampleWording
from trying to correct heredocs. (@G-Rath)RSpec/VariableDefinition
. (@r7kamura)Published by Darhazer about 3 years ago
ExpectChange
. (@francois-ferrandis)RSpec/HookArgument
. (@lokhi)RSpec/DescribeClass
. (@MothOnMars)RSpec/ExcessiveDocstringSpacing
cop. (@G-Rath)RSpec/SubjectDeclaration
cop. (@dswij)RSpec/EmptyHook
autocorrection. (@pirj)RSpec/IteratedExpectation
when there is single, non-expectation statement in the block body. (@Darhazer)Published by bquorning over 3 years ago
RSpec/FilePath
to check suffix when given a non-constant top-level node (e.g. features). (@topalovic)single_statement_only
style of RSpec/ImplicitSubject
cop. (@tejasbubane)DescribedClass
when accessing a constant on a variable in a spec that is nested in a namespace. (@rrosenblum)RSpec/IdenticalEqualityAssertion
cop. (@tejasbubane)RSpec/Rails/AvoidSetupHook
cop. (@paydaylight)RSpec/ExpectChange
cop with block style and chained method call. (@tejasbubane)Published by bquorning over 3 years ago
RSpec/ContextWording
to accept multi-word prefixes. (@hosamaly)CountAsOne
configuration option to RSpec/ExampleLength
. (@stephannv)RSpec/RepeatedExampleGroupBody
when pending
or skip
have argument(s). (@Tietew)Published by bquorning over 3 years ago
HooksBeforeExamples
, LeadingSubject
, LetBeforeExamples
and ScatteredLet
autocorrection to take into account inline comments and comments immediately before the moved node. (@Darhazer)Enabled: true
to prevent a mismatched configuration parameter warning when RSpec
cops are explicitly enabled in the user configuration. (@pirj)Published by bquorning almost 4 years ago
RSpec/FilePath
false positive for relative file path runs with long namespaces. (@ahukkanen)RSpec/Focus
to have auto-correction. (@dvandersluis)Published by bquorning almost 4 years ago
RSpec/ExpectActual
autocorrection when both expected and actual values are literals. (@Darhazer)Published by bquorning almost 4 years ago
This a major release, so please consider all changes “potentially breaking”. Read more about upgrading in our Upgrade to Version 2.x document.
::RuboCop::Cop::RSpec::Cop
. (@bquorning)RSpec/InvalidPredicateMatcher
cop. (@pirj)CustomIncludeMethods
RSpec/EmptyExampleGroup
option in favour of the new RSpec DSL configuration. (@pirj)RSpec/StubbedMock
). (@pirj)See also https://github.com/rubocop-hq/rubocop-rspec/releases/v2.0.0.pre
Published by bquorning almost 4 years ago
Capybara/*
→ RSpec/Capybara/*
, FactoryBot/*
→ RSpec/FactoryBot/*
, Rails/*
→ RSpec/Rails/*
). (@pirj, @bquorning)Published by bquorning almost 4 years ago
rubocop-ast
version constraint. (@PhilCoggins)Published by bquorning almost 4 years ago
RSpec/RepeatedIncludeExample
cop. (@biinari)RSpec/StubbedMock
cop. (@bquorning, @pirj)IgnoredMetadata
configuration option to RSpec/DescribeClass
. (@Rafix02)RSpec/EmptyExampleGroup
. (@pirj)RSpec/EmptyExampleGroup
when example is defined in an if
branch. (@koic)Published by bquorning about 4 years ago
Published by bquorning about 4 years ago
Fix RSpec/FilePath
when checking a file defining e.g. an empty class. (@bquorning)
Published by bquorning about 4 years ago
::RuboCop::Cop::RSpec::Base
. The old base class ::RuboCop::Cop::RSpec::Cop
is deprecated, and will be removed in the next major release. (@bquorning)RSpec/LeadingSubject
. (@pirj)RSpec/VariableDefinition
cop so interpolated and multiline strings are accepted even when configured to enforce the symbol
style. (@bquorning)RSpec/EmptyExampleGroup
to flag example groups with examples in invalid scopes. (@mlarraz)RSpec/EmptyExampleGroup
to ignore examples groups with examples defined inside iterators. (@pirj)RSpec/NestedGroups
, RSpec/FilePath
, RSpec/DescribeMethod
, RSpec/MultipleDescribes
, RSpec/DescribeClass
's top-level example group detection. (@pirj)let!
with a block-pass or a string literal to RSpec/LetSetup
. (@pirj)IgnoredPatterns
configuration option to RSpec/VariableName
. (@jtannas)RSpec/MultipleMemoizedHelpers
cop. (@mockdeep)Published by bquorning over 4 years ago
Published by bquorning over 4 years ago
RSpec/DescribeClass
. (@pirj)FactoryBot/AttributeDefinedStatically
to allow #traits_for_enum
without a block. (@harrylewis)FactoryBot/AttributeDefinedStatically
, RSpec/InstanceVariable
, RSpec/LetSetup
, RSpec/NestedGroups
and RSpec/ReturnFromStub
. (@andrykonchin)Published by bquorning over 4 years ago
RSpec/VariableName
cop. (@tejasbubane)RSpec/VariableDefinition
cop. (@tejasbubane)Capybara/VisibilityMatcher
to support more than just have_selector
. (@twalpole)SpecSuffixOnly
option to RSpec/FilePath
cop. (@zdennis)RSpec/RepeatedExampleGroupBody
to differ only by described_class. (@robotdana)RSpec/FilePath
detection across sibling directories. (@rolfschmidt)RSpec/SubjectStub
by an order of magnitude. (@andrykonchin)