Recent Releases of https://github.com/rubocop/rubocop-rspec
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v3.9.0
- Fix a false positive for
RSpec/LeakyLocalVariablewhen variables are used only in example metadata (e.g., skip messages). (@ydah) - Fix a false positive for
RSpec/ScatteredSetupwhen the hook is defined inside a class method. (@d4rky-pl) - Fix a false positive for
RSpec/DescribedClassinside dynamically evaluated blocks (class_eval,module_eval,instance_eval,class_exec,module_exec,instance_exec). (@sucicfilip) - Add new cop
RSpec/Output. (@kevinrobell-st)
- Ruby
Published by github-actions[bot] about 2 months ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v3.8.0
- Add new cop
RSpec/LeakyLocalVariable. (@lovro-bikic) - Bump RuboCop requirement to +1.81. (@ydah)
- Fix a false positive for
RSpec/LetSetupwhenlet!used in outer scope. (@ydah) - Fix a false positive for
RSpec/ReceiveNevercop whenallow(...).to receive(...).never. (@ydah) - Fix detection of nameless doubles with methods in
RSpec/VerifiedDoubles. (@ushi-as) - Improve an offense message for
RSpec/RepeatedExamplecop. (@ydah) - Let
RSpec/SpecFilePathFormatleverage ActiveSupport inflections when configured. (@corsonknowles, @bquorning)
- Ruby
Published by github-actions[bot] 4 months ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v3.7.0
- Mark
RSpec/IncludeExamplesasSafeAutoCorrect: false. (@yujideveloper) - Fix a false positive for
RSpec/LeakyConstantDeclarationwhen defining constants in explicit namespaces. (@naveg) - Add support for error matchers (
raise_exceptionandraise_error) toRSpec/Dialect. (@lovro-bikic) - Don't register offenses for
RSpec/DescribedClasswithinData.defineblocks. (@lovro-bikic) - Add autocorrection support for
RSpec/IteratedExpectationfor single expectations. (@lovro-bikic) - Exclude all cops from inspecting factorybot files, except if explicitly included. (@Mth0158)
- Fix a false positive for
RSpec/ExcessiveDocstringSpacingwhen receivers are not RSpec methods. (@ydah)
- Ruby
Published by github-actions[bot] 6 months ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v3.6.0 (RubyKaigi 2025 Edition🍊)
- Fix false positive in
RSpec/Pending, where it would mark the default blockitas an offense. (@bquorning) - Fix issue when
Style/ContextWordingis configured with a Prefix being interpreted as a boolean, likeon. (@sakuro) - Add new
RSpec/IncludeExamplescop to enforce usingit_behaves_likeoverinclude_examples. (@dvandersluis) - Change
RSpec/ScatteredSetupto allowaroundhooks to be scattered. (@ydah) - Fix an error
RSpec/ChangeByZerocop when without expect block. (@lee266) - Fix a false positive for
RSpec/DescribedClasswhenSkipBlocksis true and numblocks are used. (@earlopain)
- Ruby
Published by github-actions[bot] 11 months ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v3.5.0
- Don't let
RSpec/PredicateMatcherreplacerespond_to?with two arguments with the RSpecrespond_tomatcher. (@bquorning) - Fix
RSpec/PredicateMatchersupport foreqlandequalmatchers. (@bquorning) - Pluginfy RuboCop RSpec. (@koic)
- Ruby
Published by github-actions[bot] about 1 year ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v3.4.0
- Fix
RSpec/SortMetadatacop to limit sorting to trailing metadata arguments. (@cbliard) - Replace
RSpec/StringAsInstanceDoubleConstantwithRSpec/VerifiedDoubleReferenceconfigured to only support constant class references. (@corsonknowles) - Fix
RSpec/EmptyExampleGroupcop false positive when a simple conditional is used inside an iterator. (@lovro-bikic)
- Ruby
Published by github-actions[bot] about 1 year ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v3.3.0
- Deprecate
top_level_group?method fromTopLevelGroupmixin as all of its callers were intentionally removed fromRubocop/RSpec. (@corsonknowles) - Fix false positive for RSpec/EmptyMetadata for splat kwargs. (@pirj)
- Ruby
Published by github-actions[bot] about 1 year ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v3.2.0
- Fix
RSpec/VoidExpectto only operate inside an example block. (@corsonknowles) - Change
RSpec/ContextWordingcop to always report an offense when bothPrefixesandAllowedPatternsare empty. (@ydah) - Add support for
andandorcompound matchers toRSpec/ChangeByZerocop. (@ydah)
- Ruby
Published by github-actions[bot] over 1 year ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v3.1.0
- Add
RSpec/StringAsInstanceDoubleConstantto check for and correct strings used as instance_doubles. (@corsonknowles) - Fix false-positive for
RSpec/UnspecifiedExceptionwhen a method is literally namedraise_exception. (@aarestad) - Fix false-positive for
RSpec/UnspecifiedExceptionwhennot_to raise_erroris used within a block. (@aarestad, @G-Rath)
- Ruby
Published by github-actions[bot] over 1 year ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v3.0.5
- Fix false-negative and error for
RSpec/MetadataStylewhen non-literal args are used in metadata inEnforceStyle: hash. (@cbliard) - Improve offense message for
RSpec/IndexedLet. (@earlopain)
- Ruby
Published by github-actions[bot] over 1 year ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v3.0.4
- Fix false-negative for
UnspecifiedExceptionwhen matcher is chained. (@r7kamura)
- Ruby
Published by github-actions[bot] over 1 year ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v3.0.3
- Add support for Unicode RIGHT SINGLE QUOTATION MARK in
RSpec/ExampleWording. (@jdufresne) - Suppress deprecation warning for
RSpec/MultipleExpectations,RSpec/MultipleMemoizedHelpers, andRSpec/NestedGroupscops. (@koic)
- Ruby
Published by github-actions[bot] over 1 year ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v3.0.2
- Fix wrong autocorrect for
RSpec/ScatteredSetupwhen hook contains heredoc. (@earlopain) - Fix false negative for
RSpec/PredicateMatcherwhen expectation contains custom failure message. (@earlopain) - Facilitate the 3.0 upgrade flow with proper extracted cop messages. (@jeppester)
- Ruby
Published by ydah over 1 year ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v3.0.1
- Bump RuboCop requirement to +1.61. (@ydah)
- Ruby
Published by github-actions[bot] over 1 year ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v3.0.0
- Remove extracted cops in
Capybara,FactoryBotandRailsdepartments. (@ydah) - Remove
RuboCop::RSpec::Language::NodePattern. (@ydah) - Remove
RSpec/FilePathcop. (@ydah) - Remove
RSpec/Capybara/FeatureMethodscop. If you are using this cop, change it to useRSpec/Dialect. (@ydah) - Add new
RSpec/MissingExpectationTargetMethodcop. (@krororo) - Fix an error for
RSpec/ScatteredSetupwhen 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
- Ruby
Published by github-actions[bot] over 1 year ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v3.0.0.pre
- Remove extracted cops in
Capybara,FactoryBotandRailsdepartments. (@ydah) - Remove
RuboCop::RSpec::Language::NodePattern. (@ydah) - Remove
RSpec/FilePathcop. (@ydah) - Remove
RSpec/Capybara/FeatureMethodscop. If you are using this cop, change it to useRSpec/Dialect. (@ydah) - Enable all pending cops. (@bquorning)
- Add new
RSpec/MissingExpectationTargetMethodcop. (@krororo) - Fix an error for
RSpec/ScatteredSetupwhen 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
- Ruby
Published by github-actions[bot] over 1 year ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.31.0
- Support
AutoCorrect: contextualoption for LSP. (@ydah)
- Ruby
Published by github-actions[bot] over 1 year ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.30.0
- Add new
RSpec/ExpectInLetcop. (@yasu551)
- Ruby
Published by github-actions[bot] over 1 year ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.29.2
- Fix beginless and endless range bug for RepeatedIncludeExample cop. (@hasghari)
- Fix a false positive for
RSpec/RepeatedSubjectCallwhen subject is used as argument to function call. (@K-S-A)
- Ruby
Published by github-actions[bot] almost 2 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.29.1
- Fix an error in the default configuration. (@ydah)
- Ruby
Published by github-actions[bot] almost 2 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.29.0
- Fix an autocorrect error for
RSpec/ExpectActual. (@bquorning) - Add new
RSpec/UndescriptiveLiteralsDescriptioncop. (@ydah) - Add new
RSpec/EmptyOutputcop. (@bquorning)
- Ruby
Published by github-actions[bot] almost 2 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.28.0
- Extract RSpec Rails cops to a separate repository,
rubocop-rspec_rails. Therubocop-rspec_railsrepository is a dependency ofrubocop-rspecand 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)
- Ruby
Published by ydah almost 2 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.27.1
- Fix a false positive for
RSpec/RepeatedSubjectCallwhensubject.method_call. (@ydah) - Add configuration option
OnlyStaticConstantstoRSpec/DescribedClass. (@ydah)
- Ruby
Published by bquorning almost 2 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.27.0
- Add new
RSpec/IsExpectedSpecifycop. (@ydah) - Add new
RSpec/RepeatedSubjectCallcop. (@drcapulet) - Add support for
assert_true,assert_false,assert_not_equal,assert_not_nil,*_empty,*_predicate,*_kind_of,*_in_delta,*_match,*_instance_ofand*_includesassertions inRSpec/Rails/MinitestAssertions. (@ydah, @G-Rath) - Support asserts with messages in
Rspec/BeEmpty. (@G-Rath) - Fix a false positive for
RSpec/ExpectActualwhen used with rspec-rails routing matchers. (@naveg) - Add configuration option
ResponseMethodstoRSpec/Rails/HaveHttpStatus. (@ydah) - Fix a false negative for
RSpec/DescribedClasswhen class with constant. (@ydah) - Fix a false positive for
RSpec/ExampleWithoutDescriptionwhenspecifywith multi-line block and missing description. (@ydah) - Fix an incorrect autocorrect for
RSpec/ChangeByZerowhen compound expectations with line break before.by(0). (@ydah)
- Ruby
Published by bquorning about 2 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.26.1
- Fix an error for
RSpec/SharedExampleswhen using examples without argument. (@ydah)
- Ruby
Published by bquorning about 2 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.26.0
- Add new
RSpec/RedundantPredicateMatchercop. (@ydah) - Add new
RSpec/RemoveConstcop. (@swelther) - Add support for correcting "it will" (future tense) for
RSpec/ExampleWording. (@jdufresne) - Add support for
symbolstyle forRSpec/SharedExamples. (@jessieay) - Ensure
PendingWithoutReasoncan detect violations inside shared groups. (@robinaugh)
- Ruby
Published by bquorning about 2 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.25.0
- Add support single quoted string and percent string and heredoc for
RSpec/Rails/HttpStatus. (@ydah) - Change to be inline disable for
RSpec/SpecFilePathFormatlikeRSpec/FilePath. (@ydah) - Fix a false positive for
RSpec/MetadataStylewith example groups having multiple string arguments. (@franzliedke)
- Ruby
Published by bquorning over 2 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.24.1
- Fix an error when using
RSpec/FilePathand revert to enabled by default. If you have already moved toRSpec/SpecFilePathSuffixandRSpec/SpecFilePathFormat, disableRSpec/FilePathexplicitly asEnabled: false. TheRSpec/FilePathbefore migration and theRSpec/SpecFilePathSuffixandRSpec/SpecFilePathFormatas the target are available respectively. (@ydah)
- Ruby
Published by bquorning over 2 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.24.0
- Split
RSpec/FilePathintoRSpec/SpecFilePathSuffixandRSpec/SpecFilePathFormat.RSpec/FilePathcop is enabled by default, the two new cops are pending and need to be enabled explicitly. (@ydah) - Add new
RSpec/Eqcop. (@ydah) - Add
RSpec/MetadataStyleandRSpec/EmptyMetadatacops. (@r7kamura) - Add support
RSpec/Rails/HttpStatuswhenhave_http_statuswith string argument. (@ydah) - Fix an infinite loop error when
RSpec/ExcessiveDocstringSpacingfinds a description with non-ASCII leading/trailing whitespace. (@bcgraham) - Fix an incorrect autocorrect for
RSpec/ReceiveMessageswhen return values declared between stubs. (@marocchino) - Fix a false positive
RSpec/Focuswhen chained method call and inside define method. (@ydah)
- Ruby
Published by bquorning over 2 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.23.2
- Fix an incorrect autocorrect for
RSpec/ReceiveMessageswhen method is only non-word character. (@marocchino) - Fix a false positive for
RSpec/ReceiveMessageswhen return with splat. (@marocchino)
- Ruby
Published by bquorning over 2 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.23.1
- Mark to
Safe: falseforRSpec/Rails/NegationBeValidcop. (@ydah) - Declare autocorrect as unsafe for
RSpec/ReceiveMessages. (@bquorning)
- Ruby
Published by bquorning over 2 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.23.0
- Add new
RSpec/Rails/NegationBeValidcop. (@ydah) - Fix a false negative for
RSpec/ExcessiveDocstringSpacingwhen finds description with em space. (@ydah) - Fix a false positive for
RSpec/EmptyExampleGroupwhen example group with examples defined inifbranch inside iterator. (@ydah) - Update the message output of
RSpec/ExpectActualto include the word 'value'. (@corydiamand) - Fix a false negative for
RSpec/Pendingwhenitwithout body. (@ydah) - Add new
RSpec/ReceiveMessagescop. (@ydah) - Change default.yml path to use
**/spec/*instead ofspec/*. (@ydah) - Add
AllowedIdentifiersandAllowedPatternsconfiguration option toRSpec/IndexedLet. (@ydah) - Fix
RSpec/NamedSubjectwhen block has no body. (@splattael) - Fix
RSpec/LetBeforeExamplesautocorrect incompatible withRSpec/ScatteredLetautocorrect. (@ydah) - Update
RSpec/Focusto supportshared_contextandshared_examples(@tmaier)
- Ruby
Published by bquorning over 2 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.22.0
- Extract factory_bot cops to a separate repository,
rubocop-factory_bot. Therubocop-factory_botrepository is a dependency ofrubocop-rspecand 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)
- Ruby
Published by bquorning almost 3 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.21.0
- Fix a false positive in
RSpec/IndexedLetwith suffixes after index-like numbers. (@pirj) - Fix an error for
RSpec/Rails/HaveHttpStatuswith comparison with strings containing non-numeric characters. (@ydah) - Fix an error for
RSpec/MatchArraywhenmatch_arraywith no argument. (@ydah) - Add support
a_block_changingandchangingforRSpec/ChangeByZero. (@ydah) - Drop Ruby 2.6 support. (@ydah)
- Ruby
Published by bquorning almost 3 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.20.0
- Add new
RSpec/IndexedLetcop. (@dmitrytsepelev) - Add new
RSpec/BeEmptycop. (@ydah, @bquorning) - Add autocorrect support for
RSpec/ScatteredSetup. (@ydah) - Add support
be_statusstyle forRSpec/Rails/HttpStatus. (@ydah) - Add support for shared example groups to
RSpec/EmptyLineAfterExampleGroup. (@pirj) - Add support for
RSpec/HaveHttpStatuswhen usingresponse.code. (@ydah) - Fix order of expected and actual in correction for
RSpec/Rails/MinitestAssertions(@mvz) - Fix a false positive for
RSpec/DescribedClassModuleWrappingwhen RSpec.describe numblock is nested within a module. (@ydah) - Fix a false positive for
RSpec/FactoryBot/ConsistentParenthesesStyleinside&&,||and:?whenomit_parenthesesis on (@dmitrytsepelev) - Fix a false positive for
RSpec/PendingWithoutReasonwhen pending/skip has a reason inside an example group. (@ydah) - Fix a false negative for
RSpec/RedundantAroundwhen redundant numblockaround. (@ydah) - Change
RSpec/ContainExactlyto ignore calls with no arguments, and changeRSpec/MatchArrayto ignore calls with an empty array literal argument. (@ydah, @bquorning) - Make
RSpec/MatchArrayandRSpec/ContainExactlypending. (@ydah)
- Ruby
Published by bquorning almost 3 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.19.0
- Add new
RSpec/PendingBlockInsideExamplecop. (@ydah) - Add new
RSpec/RedundantAroundcop. (@r7kamura) - Add new
RSpec/Rails/TravelAroundcop. (@r7kamura) - Add new
RSpec/ContainExactlyandRSpec/MatchArraycops. (@faucct) - Rename
RSpec/PendingBlockInsideExamplecop toRSpec/SkipBlockInsideExample. (@pirj) - Fix a false positive for
RSpec/ContextWordingwhen context is interpolated string literal or execute string. (@ydah) - Fix a false positive for
RSpec/DescribeMethodwhen multi-line describe without#and.at the beginning. (@ydah, @pirj) - Fix a false positive for
RSpec/VariableNamewhen inside non-spec code. (@ydah) - Fix a false positive for
RSpec/VariableDefinitionwhen inside non-spec code. (@ydah) - Fix a false positive for
RSpec/PendingWithoutReasonwhen not inside example and pending/skip with block. (@ydah, @pirj) - Fix a false positive for
RSpec/PendingWithoutReasonwhenskipis passed a block inside example. (@ydah, @pirj) - Fix an incorrect autocorrect for
RSpec/VerifiedDoubleReferencewhen namespaced class. (@ydah) - Deprecate
send_pattern/block_pattern/numblock_patternhelpers in favour of using node pattern explicitly. (@pirj, @ydah)
- Ruby
Published by bquorning almost 3 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.18.1
- Add
rubocop-capybaraversion constraint to prevent sudden cop enabling when it hits 3.0. (@pirj)
- Ruby
Published by bquorning about 3 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.18.0
- Extract Capybara cops to a separate repository,
rubocop-capybara. Therubocop-capybararepository is a dependency ofrubocop-rspecand the Capybara cops are aliased (RSpec/Capybara/Foo==Capybara/Foo) until v3.0 is released, so the change will be invisible to users until then. (@pirj)
- Ruby
Published by bquorning about 3 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.17.1
- Fix a false negative for
RSpec/Pendingwhen using skipped in metadata is multiline string. (@ydah) - Fix a false positive for
RSpec/NoExpectationExamplewhen using skipped in metadata is multiline string. (@ydah) - Fix a false positive for
RSpec/ContextMethodwhen multi-line context with#at the beginning. (@ydah) - Fix an incorrect autocorrect for
RSpec/PredicateMatcherwhen multiline expect and predicate method with heredoc. (@ydah) - Fix a false positive for
RSpec/PredicateMatcherwhenincludewith multiple argument. (@ydah)
- Ruby
Published by bquorning about 3 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.17.0
- Fix a false positive for
RSpec/PendingWithoutReasonwhen pending/skip is argument of methods. (@ydah) - Add new
RSpec/Capybara/MatchStylecop. (@ydah) - Add new
RSpec/Rails/MinitestAssertionscop. (@ydah) - Fix a false positive for
RSpec/PendingWithoutReasonwhen not inside example. (@ydah) - Fix a false negative for
RSpec/PredicateMatcherwhen usingincludeandrespond_to. (@ydah) - Fix a false positive for
RSpec/StubbedMockwhen stubbed message expectation with a block and block parameter. (@ydah)
- Ruby
Published by bquorning about 3 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.16.0
- Add new
RSpec/FactoryBot/FactoryNameStylecop. (@ydah) - Improved processing speed for
RSpec/Be,RSpec/ExpectActual,RSpec/ImplicitExpect,RSpec/MessageSpies,RSpec/PredicateMatcherandRSpec/Rails/HaveHttpStatus. (@ydah) - Fix wrong autocorrection in
n_timesstyle onRSpec/FactoryBot/CreateList. (@r7kamura) - Fix a false positive for
RSpec/FactoryBot/ConsistentParenthesesStylewhen usinggeneratewith multiple arguments. (@ydah) - Mark
RSpec/BeEqasSafe: false(@r7kamura) - Add
RSpec/DuplicatedMetadatacop. (@r7kamura) - Mark
RSpec/BeEqlasSafe: false. (@r7kamura) - Add
RSpec/PendingWithoutReasoncop. (@r7kamura)
- Ruby
Published by bquorning about 3 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.15.0
- Fix a false positive for
RSpec/RepeatedDescriptionwhen different its block expectations are used. (@ydah) - Add
named_onlystyle toRSpec/NamedSubject. (@kuahyeow) - Fix
RSpec/FactoryBot/ConsistentParenthesesStyleto ignore calls without the first positional argument. (@pirj) - Fix
RSpec/FactoryBot/ConsistentParenthesesStyleto ignore calls inside a Hash or an Array. (@pirj) - Fix
RSpec/NestedGroupsto correctly useAllowedGroupsconfig. (@samrjenkins) - Remove
RunnersandHookScopesRSpec DSL elements from configuration. (@pirj) - Add
with default RSpec/Language confighelper tolib(underrubocop/rspec/shared_contexts/default_rspec_language_config_context), to allow use for downstream cops based onRuboCop::Cop::RSpec::Base. (@smcgivern)
- Ruby
Published by bquorning over 3 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.14.2
- Fix an incorrect autocorrect for
FactoryBot/ConsistentParenthesesStylewithomit_parenthesesoption when method name and first argument are not on same line. (@ydah) - Fix autocorrection loop in
RSpec/ExampleWordingfor insufficient example wording. (@pirj) - Fix
RSpec/SortMetadatanot to reorder arguments ofinclude_/it_behaves_like. (@pirj) - Fix a false positive for
RSpec/NoExpectationExamplewhen allowed pattern methods with arguments. (@ydah) - Change
RSpec/FilePathso that it only checks suffix when path is under spec/routing or type is defined as routing. (@r7kamura)
- Ruby
Published by bquorning over 3 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.14.1
- Fix an error for
RSpec/Rails/InferredSpecTypewith redundant type before other Hash metadata. (@ydah)
- Ruby
Published by bquorning over 3 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.14.0
- Add
require_implicitstyle toRSpec/ImplicitSubject. (@r7kamura) - Fix a false positive for
RSpec/Capybara/SpecificMatcherwhenhave_css("a")without attribute. (@ydah) - Update
RSpec/ExampleWordingcop to raise error for insufficient descriptions. (@akrox58) - Add new
RSpec/Capybara/NegationMatchercop. (@ydah) - Add
AllowedPatternsconfiguration option toRSpec/NoExpectationExample. (@ydah) - Improve
RSpec/NoExpectationExamplecop to ignore examples skipped or pending via metadata. (@pirj) - Add
RSpec/FactoryBot/ConsistentParenthesesStylecop. (@Liberatys) - Add
RSpec/Rails/InferredSpecTypecop. (@r7kamura) - Add new
RSpec/Capybara/SpecificActionscop. (@ydah) - Update
config/default.ymlremoving deprecated option to make the config correctable by users. (@ignaciovillaverde) - Do not attempt to auto-correct example groups with
include_examplesinRSpec/LetBeforeExamples. (@pirj) - Add new
RSpec/SortMetadatacop. (@leoarnold) - Add support for subject! method to
RSpec/SubjectDeclaration. (@ydah)
- Ruby
Published by bquorning over 3 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.13.2
- Fix an error for
RSpec/Capybara/SpecificFinderswith no parentheses. (@ydah) - Fix a false positive for
RSpec/NoExpectationExamplewith pending usingskiporpendinginside an example. (@ydah) - Exclude
have_textandhave_contentthat raiseArgumentErrorwithRSpec/Capybara/VisibilityMatcherwhere:visibleis an invalid option. (@ydah) - Fix a false negative for
RSpec/Capybara/VisibilityMatcherwith negative matchers. (@ydah)
- Ruby
Published by bquorning over 3 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.13.1
Include config/obsoletion.yml in the gemspec. (@hosamaly)
- Ruby
Published by bquorning over 3 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.13.0
- Fix
RSpec/FilePathcop missing mismatched expanded namespace. (@sl4vr) - Add new
AllowConsecutiveOneLiners(default true) option forRspec/EmptyLineAfterHookcop. (@ngouy) - Add autocorrect support for
RSpec/EmptyExampleGroup. (@r7kamura) - Fix
RSpec/ChangeByZerowith compound expressions using&or|operators. (@BrianHawley) - Add
RSpec/NoExpectationExample. (@r7kamura) - Add some expectation methods to default configuration. (@r7kamura)
- Fix a false positive for
RSpec/Capybara/SpecificMatcher. (@ydah) - Fix a false negative for
RSpec/Capybara/SpecificMatcherforhave_field. (@ydah) - Fix a false positive for
RSpec/Capybara/SpecificMatcherwhen may not have ahrefbyhave_link. (@ydah) - Add
NegatedMatcherconfiguration option toRSpec/ChangeByZero. (@ydah) - Add new
RSpec/Capybara/SpecificFinderscop. (@ydah) - Add support for numblocks to
RSpec/AroundBlock,RSpec/EmptyLineAfterHook,RSpec/ExpectInHook,RSpec/HookArgument,RSpec/HooksBeforeExamples,RSpec/IteratedExpectation, andRSpec/NoExpectationExample. (@ydah) - Fix incorrect documentation URLs when using
rubocop --show-docs-url. (@r7kamura) - Add
AllowedGroupsconfiguration option toRSpec/NestedGroups. (@ydah) - Deprecate
IgnoredPatternsoption in favor of theAllowedPatternsoptions. (@ydah) - Add
AllowedPatternsconfiguration option toRSpec/ContextWording. (@ydah) - Add
RSpec/ClassCheckcop. (@r7kamura) - Fix a false positive for
RSpec/Capybara/SpecificMatcherwhen pseudo-classes. (@ydah) - Fix a false negative for
RSpec/SubjectStubwhen the subject is declared with thesubject!method and called by name. (@eikes) - Support
Array.new(n)onRSpec/FactoryBot/CreateListcop. (@r7kamura)
- Ruby
Published by bquorning over 3 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.12.1
- Fix a false positive for
RSpec/Capybara/SpecificMatcher. (@ydah)
- Ruby
Published by bquorning over 3 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.12.0
- Fix incorrect path suggested by
RSpec/FilePathcop when second argument contains spaces. (@tejasbubane) - Fix autocorrect for EmptyLineSeparation. (@johnny-miyake)
- Add new
RSpec/Capybara/SpecificMatchercop. (@ydah) - Fixed false offense detection in
FactoryBot/CreateListwhen a n.times block is including method calls in the factory create arguments. (@ngouy) - Fix error in
RSpec/RSpec/FactoryBot/CreateListcop for empty block. (@tejasbubane) - Update
RSpec/MultipleExpectationscop documentation with examples of aggregate_failures use. (@edgibbs) - Declare autocorrect as unsafe for
RSpec/VerifiedDoubleReference. (@Drowze) - Add new
RSpec/Rails/HaveHttpStatuscop. (@akiomik)
- Ruby
Published by bquorning over 3 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.11.1
- Fix a regression in
RSpec/ExpectChangeflagging chained method calls. (@pirj)
- Ruby
Published by bquorning almost 4 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.11.0
- Drop Ruby 2.5 support. (@ydah)
- Add new
RSpec/ChangeByZerocop. (@ydah) - Improve
RSpec/ExpectChangeto detect namespaced and top-level constants. (@M-Yamashita01) - Introduce an amendment to
Metrics/BlockLengthto exclude spec files. (@luke-hill)
- Ruby
Published by bquorning almost 4 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.10.0
- Fix a false positive for
RSpec/EmptyExampleGroupwhen expectations in case statement. (@ydah) - Add
RSpec/VerifiedDoubleReferencecop. (@t3h2mas) - Make
RSpec/BeNilcop configurable with abe_nilstyle and abestyle. (@bquorning) - Fix
Capybara/CurrentPathExpectationautocorrect incompatible withStyle/TrailingCommaInArgumentsautocorrect. (@ydah)
- Ruby
Published by bquorning almost 4 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.9.0
- Add new
RSpec/BeNilcop. (@bquorning) - Add new
RSpec/BeEqcop. (@bquorning)
- Ruby
Published by bquorning about 4 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.8.0
- Fix
RSpec/FactoryBot/SyntaxMethodsandRSpec/Capybara/FeatureMethodsto inspect shared groups. (@pirj) - Fix
RSpec/LeadingSubjectfailure in non-spec code. (@pirj) - Add bad example to
RSpec/SubjectStubcop. (@oshiro3) - Replace non-styleguide cops
StyleGuideattribute withReference. (@pirj) - Fix
RSpec/SubjectStubto disallow stubbing of subjects defined in parent example groups. (@pirj)
- Ruby
Published by bquorning about 4 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.7.0
- Add new
RSpec/FactoryBot/SyntaxMethodscop. (@leoarnold) - Exclude
tasktype specs fromRSpec/DescribeClasscop. (@harry-graham)
- Ruby
Published by bquorning about 4 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.6.0
- Fix merging RSpec DSL configuration from third-party gems. (@pirj)
- Fix
RSpec/ExcessiveDocstringSpacingfalse positive for multi-line indented strings. (@G-Rath) - Fix
Includeconfiguration for sub-departments. (@pirj) - Ignore heredocs in
RSpec/ExcessiveDocstringSpacing. (@G-Rath) - Stop
RSpec/ExampleWordingfrom trying to correct heredocs. (@G-Rath) - Add autocorrect support for
RSpec/VariableDefinition. (@r7kamura)
- Ruby
Published by bquorning over 4 years ago
https://github.com/rubocop/rubocop-rspec - 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/ExcessiveDocstringSpacingcop. (@G-Rath) - Add
RSpec/SubjectDeclarationcop. (@dswij) - Fix excessive whitespace removal in
RSpec/EmptyHookautocorrection. (@pirj) - Bump RuboCop requirement to v1.19.0. (@pirj)
- Fix false positive in
RSpec/IteratedExpectationwhen there is single, non-expectation statement in the block body. (@Darhazer)
- Ruby
Published by Darhazer over 4 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.4.0
- Update
RSpec/FilePathto check suffix when given a non-constant top-level node (e.g. features). (@topalovic) - Add missing documentation for
single_statement_onlystyle ofRSpec/ImplicitSubjectcop. (@tejasbubane) - Fix an exception in
DescribedClasswhen accessing a constant on a variable in a spec that is nested in a namespace. (@rrosenblum) - Add new
RSpec/IdenticalEqualityAssertioncop. (@tejasbubane) - Add
RSpec/Rails/AvoidSetupHookcop. (@paydaylight) - Fix false negative in
RSpec/ExpectChangecop with block style and chained method call. (@tejasbubane)
- Ruby
Published by bquorning over 4 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.3.0
- Allow
RSpec/ContextWordingto accept multi-word prefixes. (@hosamaly) - Drop support for ruby 2.4. (@bquorning)
- Add
CountAsOneconfiguration option toRSpec/ExampleLength. (@stephannv) - Fix a false positive for
RSpec/RepeatedExampleGroupBodywhenpendingorskiphave argument(s). (@Tietew)
- Ruby
Published by bquorning almost 5 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.2.0
- Fix
HooksBeforeExamples,LeadingSubject,LetBeforeExamplesandScatteredLetautocorrection to take into account inline comments and comments immediately before the moved node. (@Darhazer) - Improve rubocop-rspec performance. (@Darhazer, @bquorning)
- Include
Enabled: trueto prevent a mismatched configuration parameter warning whenRSpeccops are explicitly enabled in the user configuration. (@pirj)
- Ruby
Published by bquorning about 5 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.1.0
- Fix
RSpec/FilePathfalse positive for relative file path runs with long namespaces. (@ahukkanen) - Update
RSpec/Focusto have auto-correction. (@dvandersluis)
- Ruby
Published by bquorning about 5 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.0.1
- Fixed infinite loop in
RSpec/ExpectActualautocorrection when both expected and actual values are literals. (@Darhazer)
- Ruby
Published by bquorning over 5 years ago
https://github.com/rubocop/rubocop-rspec - 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/InvalidPredicateMatchercop. (@pirj) - Remove the code responsible for filtering files to inspect. (@pirj)
- Make RSpec language elements configurable. (@sl4vr)
- Remove
CustomIncludeMethodsRSpec/EmptyExampleGroupoption 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
- Ruby
Published by bquorning over 5 years ago
https://github.com/rubocop/rubocop-rspec - 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)
- Ruby
Published by bquorning over 5 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.44.1
- Relax
rubocop-astversion constraint. (@PhilCoggins)
- Ruby
Published by bquorning over 5 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.44.0
- Move our documentation from rubocop-rspec.readthedocs.io to docs.rubocop.org/rubocop-rspec. (@bquorning)
- Add
RSpec/RepeatedIncludeExamplecop. (@biinari) - Add
RSpec/StubbedMockcop. (@bquorning, @pirj) - Add
IgnoredMetadataconfiguration option toRSpec/DescribeClass. (@Rafix02) - Fix false positives in
RSpec/EmptyExampleGroup. (@pirj) - Fix a false positive for
RSpec/EmptyExampleGroupwhen example is defined in anifbranch. (@koic)
- Ruby
Published by bquorning over 5 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.43.2
- Fix
RSpec/FilePathwhen checking a file with a shared example. (@pirj) - Fix subject nesting detection in
RSpec/LeadingSubject. (@pirj)
- Ruby
Published by bquorning over 5 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.43.1
Fix RSpec/FilePath when checking a file defining e.g. an empty class. (@bquorning)
- Ruby
Published by bquorning over 5 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.43.0
- Add a new base cop class
::RuboCop::Cop::RSpec::Base. The old base class::RuboCop::Cop::RSpec::Copis 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/VariableDefinitioncop so interpolated and multiline strings are accepted even when configured to enforce thesymbolstyle. (@bquorning) - Fix
RSpec/EmptyExampleGroupto flag example groups with examples in invalid scopes. (@mlarraz) - Fix
RSpec/EmptyExampleGroupto 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
IgnoredPatternsconfiguration option toRSpec/VariableName. (@jtannas) - Add
RSpec/MultipleMemoizedHelperscop. (@mockdeep)
- Ruby
Published by bquorning over 5 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.42.0
- Update RuboCop dependency to 0.87.0 because of changes to internal APIs. (@bquorning, @Darhazer)
- Ruby
Published by bquorning over 5 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.41.0
- Extend the list of Rails spec types for
RSpec/DescribeClass. (@pirj) - Fix
FactoryBot/AttributeDefinedStaticallyto allow#traits_for_enumwithout a block. (@harrylewis) - Improve the performance of
FactoryBot/AttributeDefinedStatically,RSpec/InstanceVariable,RSpec/LetSetup,RSpec/NestedGroupsandRSpec/ReturnFromStub. (@andrykonchin)
- Ruby
Published by bquorning over 5 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.40.0
- Add new
RSpec/VariableNamecop. (@tejasbubane) - Add new
RSpec/VariableDefinitioncop. (@tejasbubane) - Expand
Capybara/VisibilityMatcherto support more than justhave_selector. (@twalpole) - Add new
SpecSuffixOnlyoption toRSpec/FilePathcop. (@zdennis) - Allow
RSpec/RepeatedExampleGroupBodyto differ only by described_class. (@robotdana) - Fix
RSpec/FilePathdetection across sibling directories. (@rolfschmidt) - Improve the performance of
RSpec/SubjectStubby an order of magnitude. (@andrykonchin)
- Ruby
Published by bquorning over 5 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.39.0
- Fix
RSpec/FilePathdetection when absolute path includes test subject. (@eitoball) - Add new
Capybara/VisibilityMatchercop. (@aried3r) - Ignore String constants by
RSpec/Describe. (@AlexWayfer) - Drop support for Ruby 2.3. (@bquorning)
- Fix multiple cops to detect
letwith proc argument. (@tejasbubane) - Add autocorrect support for
RSpec/ScatteredLet. (@Darhazer) - Add new
RSpec/EmptyHookcop. (@tejasbubane)
- Ruby
Published by bquorning almost 6 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.38.1
- Fix
RSpec/RepeatedDescriptionto detect descriptions with interpolation and methods. (@lazycoder9)
- Ruby
Published by bquorning about 6 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.38.0
- Fix
RSpec/InstanceVariabledetection inside custom matchers. (@pirj) - Fix
RSpec/ScatteredSetupto distinguish hooks with different metadata. (@pirj) - Add autocorrect support for
RSpec/ExpectActualcop. (@dduugg, @pirj) - Add
RSpec/RepeatedExampleGroupBodycop. (@lazycoder9) - Add
RSpec/RepeatedExampleGroupDescriptioncop. (@lazycoder9) - Add block name and other lines to
RSpec/ScatteredSetupmessage. (@elebow) - Fix
RSpec/RepeatedDescriptionto take into account example metadata. (@lazycoder9)
- Ruby
Published by bquorning about 6 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.37.1
- Improve message and description of
FactoryBot/FactoryClassName. (@ybiquitous) - Fix
FactoryBot/FactoryClassNameto ignoreHashandOpenStruct. (@jfragoulis)
- Ruby
Published by bquorning about 6 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.37.0
- Implement
RSpec/DescribedClassModuleWrappingto disallow RSpec statements within a module. (@kellysutton) - Fix documentation rake task to support Rubocop 0.75. (@nickcampbell18)
- Fix
RSpec/SubjectStubto detect implicit subjects stubbed. (@QQism) - Fix
RSpec/Pendingnot flaggingskipwith string values. (@pirj) - Add
AllowedExplicitMatchersconfig option forRSpec/PredicateMatcher. (@mkrawc) - Add
FactoryBot/FactoryClassNamecop. (@jfragoulis)
- Ruby
Published by bquorning over 6 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.36.0
- Fix
RSpec/DescribedClass's error whendescribed_classis used as part of a constant. (@pirj) - Fix
RSpec/ExampleWordingautocorrect of multi-line docstrings. (@pirj) - Add
RSpec/ContextMethodcop, to detect method names incontext. (@geniou) - Update RuboCop dependency to 0.68.1 with support for children matching node pattern syntax. (@pirj)
- Add
RSpec/EmptyLineAfterExamplecop to check that there is an empty line after example blocks. (@pirj) - Fix
Capybara/CurrentPathExpectationauto-corrector, to include optionignore_query: true. (@onumis) - Fix
RSpec/Focusdetecting mixed array/hash metadata. (@dgollahon) - Fix
RSpec/Focusto also detectpendingexamples. (@dgollahon)
- Ruby
Published by bquorning over 6 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.35.0
- Add
RSpec/ImplicitBlockExpectationcop. (@pirj)
- Ruby
Published by bquorning over 6 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.34.1
- Fix
RSpec/DescribedClass's error when a local variable is part of the namespace. (@pirj)
- Ruby
Published by bquorning over 6 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.34.0
- Remove
AggregateFailuresByDefaultconfig option ofRSpec/MultipleExpectations. (@pirj) - Add
RSpec/LeakyConstantDeclarationcop. (@jonatas, @pirj) - Improve
aggregate_failuresmetadata detection ofRSpec/MultipleExpectations. (@pirj) - Improve
RSpec/SubjectStubdetection and message. (@pirj) - Change message of
RSpec/LetSetupcop to be more descriptive. (@foton) - Improve
RSpec/ExampleWordingto handle interpolated example messages. (@nc-holodakg) - Improve detection by allowing the use of
RSpecas a top-level constant. (@pirj) - Fix
RSpec/DescribedClass's incorrect detection. (@pirj) - Improve
RSpec/DescribedClass's ability to detect inside modules and classes. (@pirj)
- Ruby
Published by bquorning over 6 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.33.0
- Let
RSpec/DescribedClasspassStructinstantiation closures. (@schmijos) - Fixed
RSpec/ContextWordingmissingcontexts with metadata. (@pirj) - Fix
FactoryBot/AttributeDefinedStaticallynot working with an explicit receiver. (@composerinteralia) - Add
RSpec/Dialectenforces custom RSpec dialects. (@gsamokovarov) - Fix redundant blank lines in
RSpec/MultipleSubjects's autocorrect. (@pirj) - Drop support for ruby
2.2. (@bquorning)
- Ruby
Published by bquorning almost 7 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.32.0
- Add
RSpec/Yieldcop, suggesting using theand_yieldmethod when stubbing a method, accepting a block. (@Darhazer) - Fix
FactoryBot/CreateListautocorrect crashing when the factory is called with a block=. (@Darhazer) - Fixed
RSpec/Focusnot flagging some cases ofRSpec.describewithfocus: true. (@Darhazer) - Fixed
RSpec/Pendingnot flagging some cases ofRSpec.describewith:skip. (@Darhazer) - Fix false positive in
RSpec/ReceiveCountswhen method nameexactly,at_leastorat_mostis used along withtimes, without being an RSpec API. (@Darhazer)
- Ruby
Published by bquorning about 7 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.31.0
- Add
IgnoreSharedExamplesoption forRSpec/NamedSubject. (@RST-J) - Add autocorrect support for
Capybara/CurrentPathExpectationcop. (@ypresto) - Add support for built-in
existsmatcher forRSpec/PredicateMatchercop. (@mkenyon) SingleArgumentMessageChainno longer reports an array as it's only argument as an offense. (@Darhazer)
- Ruby
Published by bquorning about 7 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.30.1
FactoryBot/CreateListnow ignorestimesblocks with an argument. (@Darhazer)
- Ruby
Published by bquorning over 7 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.30.0
- Add config to
RSpec/VerifiedDoublesto enforcement of verification on unnamed doubles. (@BrentWheeldon) - Fix
FactoryBot/AttributeDefinedStaticallynot working when there is a non-symbol key. (@vzvu3k6k) - Fix false positive in
RSpec/ImplicitSubjectwhenis_expectedis used insideits()block. (@Darhazer) - Add
single_statement_onlystyle toRSpec/ImplicitSubjectas a more relaxed alternative tosingle_line_only. (@Darhazer) - Add
RSpec/UnspecifiedExceptionas a default cop to encourage more-specificexpect{}.to raise_error(ExceptionType), orraise_exceptionstyle handling of exceptions. (@daveworth)
- Ruby
Published by bquorning over 7 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.29.1
- Fix false negative in
FactoryBot/AttributeDefinedStaticallywhen attribute is defined onself. (@Darhazer) RSpec/FactoryBotcops will now also inspect thespec/factories.rbpath by default. (@bquorning)
- Ruby
Published by bquorning over 7 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.29.0
RSpec/InstanceVariable- Recommend local variables in addition tolet. (@jaredbeck)- Add
RSpec/ImplicitSubjectcop. (@Darhazer) - Add
RSpec/HooksBeforeExamplescop. (@Darhazer)
- Ruby
Published by bquorning over 7 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.28.0
- Add
RSpec/ReceiveNevercop enforcing usage ofnot_to receiveinstead ofnevermatcher. (@Darhazer) - Fix false positive in
RSpec/EmptyLineAfterExampleGroupcop when example is insideif. (@Darhazer) - Add
RSpec/MissingExampleGroupArgumentto enforce first argument for an example group. (@geniou) - Drop support for ruby
2.1. (@bquorning) - Add
FactoryBot/AttributeDefinedStaticallycop to help FactoryBot users with the deprecation of static attributes. (@composerinteralia, @seanpdoyle) - Remove
FactoryBot/DynamicAttributeDefinedStaticallyandFactoryBot/StaticAttributeDefinedDynamicallycops. (@composerinteralia)
- Ruby
Published by bquorning over 7 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.27.0
RSpec/LeadingSubjectnow enforces subject to be before any examples, hooks or let declarations. (@Darhazer)- Fix
RSpec/NotToNotto highlight only the selector (not_toorto_not), so it works also onexpect { ... }blocks. (@bquorning) - Add
RSpec/EmptyLineAfterHookcop. (@bquorning) - Add
RSpec/EmptyLineAfterExampleGroupcop to check that there is an empty line after example group blocks. (@bquorning) - Fix
RSpec/DescribeClasscrashing onRSpec.describewithout arguments. (@Darhazer) - Bump RuboCop requirement to v0.56.0. (@bquorning)
- Fix
RSpec/OverwritingSetupcrashing if a variable is used as an argument forlet. (@Darhazer)
- Ruby
Published by bquorning over 7 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.26.0
- Fix false positive in
RSpec/EmptyExampleGroupcop when methods named like a RSpec method are used. (@Darhazer) - Fix
Capybara/FeatureMethodsnot working when there is require before the spec. (@Darhazer) - Fix
RSpec/EmptyLineAfterFinalLet: allow a comment to be placed after latest let, requiring empty line after the comment. (@Darhazer) - Add
RSpec/ReceiveCountscop to enforce usage of :once and :twice matchers. (@Darhazer)
- Ruby
Published by bquorning over 7 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.25.1
- Fix false positive in
RSpec/Pendingcop when pending is used as a method name. (@Darhazer) - Fix
FactoryBot/DynamicAttributeDefinedStaticallyfalse positive when using symbol proc argument for a sequence. (@tdeo)
- Ruby
Published by bquorning almost 8 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.25.0
- Add
RSpec/SharedExamplescop to enforce consistent usage of string to titleize shared examples. (@anthony-robin) - Add
RSpec/Becop to enforce passing argument to the genericbematcher. (@Darhazer) - Fix false positives in
StaticAttributeDefinedDynamicallyandReturnFromStubwhen a const is used in an array or hash. (@Darhazer) - Add
RSpec/Pendingcop to enforce no existing pending or skipped examples. This is disabled by default. (@patrickomatic) - Fix
RSpec/NestedGroupscop support --auto-gen-config. (@walf443) - Fix false positives in
Capybara/FeatureMethodswhen feature methods are used as property names in a factory. (@Darhazer) - Allow configuring enabled methods in
Capybara/FeatureMethods. (@Darhazer) - Add
FactoryBot/CreateListcop. (@Darhazer)
- Ruby
Published by bquorning almost 8 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.24.0
- Compatibility with RuboCop v0.53.0. (@bquorning)
- The
Rails/HttpStatuscop is unavailable if therackgem cannot be loaded. (@bquorning) - Fix
Rails/HttpStatusnot working with custom HTTP status codes. (@bquorning) - Fix
FactoryBot/StaticAttributeDefinedDynamicallyto handle empty block. (@abrom) - Fix false positive in
FactoryBot/DynamicAttributeDefinedStaticallywhen a before/after callback has a symbol proc argument. (@abrom)
- Ruby
Published by bquorning almost 8 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.23.0
- Add
RSpec/Rails/HttpStatuscop to enforce consistent usage of the status format (numeric or symbolic). (@anthony-robin, @jojos003) - Fix false negative in
RSpec/ReturnFromStubwhen a constant is being returned by the stub. (@Darhazer) - Fix
FactoryBot/DynamicAttributeDefinedStaticallyto handle dynamic attributes inside arrays/hashes. (@abrom) - Add
FactoryBot/StaticAttributeDefinedDynamically(based on dynamic attribute cop). (@abrom)
- Ruby
Published by bquorning about 8 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.22.2
- Fix error in
RSpec/DescribedClasswhen working on an emptydescribeblock. (@bquorning)
- Ruby
Published by bquorning about 8 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.22.1
- Fix false positives in
RSpec/ReturnFromStub. (@Darhazer)
- Ruby
Published by bquorning about 8 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.22.0
- Updates
describe_classto account for RSpecs:systemwrapper of rails system tests. (@EliseFitz15) - Add
RSpec/ExpectChangecop to enforce consistent usage of the change matcher. (@Darhazer) - Add autocorrect support to
RSpec/LetBeforeExamples. (@Darhazer) - Fix
RSpec/InstanceVariableflagging instance variables inside dynamically defined class. (@Darhazer) - Add autocorrect support for
RSpec/ReturnFromStubcop. (@bquorning) - Add
RSpec/ExampleWithoutDescriptioncop. (@Darhazer)
- Ruby
Published by bquorning about 8 years ago
https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.21.0
- Compatibility with RuboCop v0.52.0. (@bquorning)
- Improve performance when user does not override default RSpec Pattern config. (@walf443)
- Add
AggregateFailuresByDefaultconfiguration forRSpec/MultipleExpectationscop. (@onk)
- Ruby
Published by bquorning about 8 years ago