Code style checking for RSpec files.
MIT License
Bot releases are visible (Hide)
Published by github-actions[bot] 4 months ago
Capybara
, FactoryBot
and Rails
departments. (@ydah)RuboCop::RSpec::Language::NodePattern
. (@ydah)RSpec/FilePath
cop. (@ydah)RSpec/Capybara/FeatureMethods
cop. If you are using this cop, change it to use RSpec/Dialect
. (@ydah)RSpec/MissingExpectationTargetMethod
cop. (@krororo)RSpec/ScatteredSetup
when one of the hooks is an empty block. (@earlopain)These previously pending cops are now enabled by default: RSpec/BeEmpty
, RSpec/BeEq
, RSpec/BeNil
, RSpec/ChangeByZero
, RSpec/ClassCheck
, RSpec/ContainExactly
, RSpec/DuplicatedMetadata
, RSpec/EmptyMetadata
, RSpec/EmptyOutput
, RSpec/Eq
, RSpec/ExcessiveDocstringSpacing
, RSpec/ExpectInLet
, RSpec/IdenticalEqualityAssertion
, RSpec/IndexedLet
, RSpec/IsExpectedSpecify
, RSpec/MatchArray
, RSpec/MetadataStyle
, RSpec/NoExpectationExample
, RSpec/PendingWithoutReason
, RSpec/ReceiveMessages
, RSpec/RedundantAround
, RSpec/RedundantPredicateMatcher
, RSpec/RemoveConst
, RSpec/RepeatedSubjectCall
, RSpec/SkipBlockInsideExample
, RSpec/SortMetadata
, RSpec/SpecFilePathFormat
, RSpec/SpecFilePathSuffix
, RSpec/SubjectDeclaration
, RSpec/UndescriptiveLiteralsDescription
, and RSpec/VerifiedDoubleReference
.
Read more about how to upgrade in https://docs.rubocop.org/rubocop-rspec/upgrade_to_version_3.html
Published by github-actions[bot] 4 months ago
Capybara
, FactoryBot
and Rails
departments. (@ydah)RuboCop::RSpec::Language::NodePattern
. (@ydah)RSpec/FilePath
cop. (@ydah)RSpec/Capybara/FeatureMethods
cop. If you are using this cop, change it to use RSpec/Dialect
. (@ydah)RSpec/MissingExpectationTargetMethod
cop. (@krororo)RSpec/ScatteredSetup
when one of the hooks is an empty block. (@earlopain)Read more about how to upgrade in https://docs.rubocop.org/rubocop-rspec/upgrade_to_version_3.html
Published by github-actions[bot] 4 months ago
AutoCorrect: contextual
option for LSP. (@ydah)Published by github-actions[bot] 5 months ago
RSpec/ExpectInLet
cop. (@yasu551)Published by github-actions[bot] 6 months ago
Published by github-actions[bot] 7 months ago
Published by github-actions[bot] 7 months ago
RSpec/ExpectActual
. (@bquorning)RSpec/UndescriptiveLiteralsDescription
cop. (@ydah)RSpec/EmptyOutput
cop. (@bquorning)Published by ydah 7 months ago
rubocop-rspec_rails
. The rubocop-rspec_rails
repository is a dependency of rubocop-rspec
and the cops related to rspec-rails are aliased (RSpec/Rails/Foo
== RSpecRails/Foo
) until v3.0 is released, so the change will be invisible to users until then. (@ydah)Published by bquorning 8 months ago
Published by bquorning 8 months ago
RSpec/IsExpectedSpecify
cop. (@ydah)RSpec/RepeatedSubjectCall
cop. (@drcapulet)assert_true
, assert_false
, assert_not_equal
, assert_not_nil
, *_empty
, *_predicate
, *_kind_of
, *_in_delta
, *_match
, *_instance_of
and *_includes
assertions in RSpec/Rails/MinitestAssertions
. (@ydah, @G-Rath)Rspec/BeEmpty
. (@G-Rath)RSpec/ExpectActual
when used with rspec-rails routing matchers. (@naveg)ResponseMethods
to RSpec/Rails/HaveHttpStatus
. (@ydah)RSpec/DescribedClass
when class with constant. (@ydah)RSpec/ExampleWithoutDescription
when specify
with multi-line block and missing description. (@ydah)RSpec/ChangeByZero
when compound expectations with line break before .by(0)
. (@ydah)Published by bquorning 10 months ago
RSpec/SharedExamples
when using examples without argument. (@ydah)Published by bquorning 10 months ago
RSpec/RedundantPredicateMatcher
cop. (@ydah)RSpec/RemoveConst
cop. (@swelther)RSpec/ExampleWording
. (@jdufresne)symbol
style for RSpec/SharedExamples
. (@jessieay)PendingWithoutReason
can detect violations inside shared groups. (@robinaugh)Published by bquorning 12 months ago
RSpec/Rails/HttpStatus
. (@ydah)RSpec/SpecFilePathFormat
like RSpec/FilePath
. (@ydah)RSpec/MetadataStyle
with example groups having multiple string arguments. (@franzliedke)Published by bquorning about 1 year ago
RSpec/FilePath
and revert to enabled by default. If you have already moved to RSpec/SpecFilePathSuffix
and RSpec/SpecFilePathFormat
, disable RSpec/FilePath
explicitly as Enabled: false
. The RSpec/FilePath
before migration and the RSpec/SpecFilePathSuffix
and RSpec/SpecFilePathFormat
as the target are available respectively. (@ydah)Published by bquorning about 1 year ago
RSpec/FilePath
into RSpec/SpecFilePathSuffix
and RSpec/SpecFilePathFormat
. RSpec/FilePath
cop is enabled by default, the two new cops are pending and need to be enabled explicitly. (@ydah)RSpec/Eq
cop. (@ydah)RSpec/MetadataStyle
and RSpec/EmptyMetadata
cops. (@r7kamura)RSpec/Rails/HttpStatus
when have_http_status
with string argument. (@ydah)RSpec/ExcessiveDocstringSpacing
finds a description with non-ASCII leading/trailing whitespace. (@bcgraham)RSpec/ReceiveMessages
when return values declared between stubs. (@marocchino)RSpec/Focus
when chained method call and inside define method. (@ydah)Published by bquorning about 1 year ago
RSpec/ReceiveMessages
when method is only non-word character. (@marocchino)RSpec/ReceiveMessages
when return with splat. (@marocchino)Published by bquorning about 1 year ago
Safe: false
for RSpec/Rails/NegationBeValid
cop. (@ydah)RSpec/ReceiveMessages
. (@bquorning)Published by bquorning about 1 year ago
RSpec/Rails/NegationBeValid
cop. (@ydah)RSpec/ExcessiveDocstringSpacing
when finds description with em space. (@ydah)RSpec/EmptyExampleGroup
when example group with examples defined in if
branch inside iterator. (@ydah)RSpec/ExpectActual
to include the word 'value'. (@corydiamand)RSpec/Pending
when it
without body. (@ydah)RSpec/ReceiveMessages
cop. (@ydah)**/spec/*
instead of spec/*
. (@ydah)AllowedIdentifiers
and AllowedPatterns
configuration option to RSpec/IndexedLet
. (@ydah)RSpec/NamedSubject
when block has no body. (@splattael)RSpec/LetBeforeExamples
autocorrect incompatible with RSpec/ScatteredLet
autocorrect. (@ydah)RSpec/Focus
to support shared_context
and shared_examples
(@tmaier)Published by bquorning over 1 year ago
rubocop-factory_bot
. The rubocop-factory_bot
repository is a dependency of rubocop-rspec
and the factory_bot cops are aliased (RSpec/FactoryBot/Foo
== FactoryBot/Foo
) until v3.0 is released, so the change will be invisible to users until then. (@ydah)