Skip to content

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Jun 15, 2024

This PR contains the following updates:

Package Change Age Confidence
rubocop-rspec (changelog) '2.26.1' -> '3.7.0' age confidence

Release Notes

rubocop/rubocop-rspec (rubocop-rspec)

v3.7.0

Compare Source

  • Mark RSpec/IncludeExamples as SafeAutoCorrect: false. ([@​yujideveloper])
  • Fix a false positive for RSpec/LeakyConstantDeclaration when defining constants in explicit namespaces. ([@​naveg])
  • Add support for error matchers (raise_exception and raise_error) to RSpec/Dialect. ([@​lovro-bikic])
  • Don't register offenses for RSpec/DescribedClass within Data.define blocks. ([@​lovro-bikic])
  • Add autocorrection support for RSpec/IteratedExpectation for single expectations. ([@​lovro-bikic])
  • Exclude all cops from inspecting factorybot files, except if explicitly included. ([@​Mth0158])
  • Fix a false positive for RSpec/ExcessiveDocstringSpacing when receivers are not RSpec methods. ([@​ydah])

v3.6.0

Compare Source

  • Fix false positive in RSpec/Pending, where it would mark the default block it as an offense. ([@​bquorning])
  • Fix issue when Style/ContextWording is configured with a Prefix being interpreted as a boolean, like on. ([@​sakuro])
  • Add new RSpec/IncludeExamples cop to enforce using it_behaves_like over include_examples. ([@​dvandersluis])
  • Change RSpec/ScatteredSetup to allow around hooks to be scattered. ([@​ydah])
  • Fix an error RSpec/ChangeByZero cop when without expect block. ([@​lee266])
  • Fix a false positive for RSpec/DescribedClass when SkipBlocks is true and numblocks are used. ([@​earlopain])

v3.5.0

Compare Source

  • Don't let RSpec/PredicateMatcher replace respond_to? with two arguments with the RSpec respond_to matcher. ([@​bquorning])
  • Fix RSpec/PredicateMatcher support for eql and equal matchers. ([@​bquorning])
  • Pluginfy RuboCop RSpec. ([@​koic])

v3.4.0

Compare Source

  • Fix RSpec/SortMetadata cop to limit sorting to trailing metadata arguments. ([@​cbliard])
  • Replace RSpec/StringAsInstanceDoubleConstant with RSpec/VerifiedDoubleReference configured to only support constant class references. ([@​corsonknowles])
  • Fix RSpec/EmptyExampleGroup cop false positive when a simple conditional is used inside an iterator. ([@​lovro-bikic])

v3.3.0

Compare Source

  • Deprecate top_level_group? method from TopLevelGroup mixin as all of its callers were intentionally removed from Rubocop/RSpec. ([@​corsonknowles])
  • Fix false positive for RSpec/EmptyMetadata for splat kwargs. ([@​pirj])

v3.2.0

Compare Source

  • Fix RSpec/VoidExpect to only operate inside an example block. ([@​corsonknowles])
  • Change RSpec/ContextWording cop to always report an offense when both Prefixes and AllowedPatterns are empty. ([@​ydah])
  • Add support for and and or compound matchers to RSpec/ChangeByZero cop. ([@​ydah])

v3.1.0

Compare Source

  • Add RSpec/StringAsInstanceDoubleConstant to check for and correct strings used as instance_doubles. ([@​corsonknowles])
  • Fix false-positive for RSpec/UnspecifiedException when a method is literally named raise_exception. ([@​aarestad])
  • Fix false-positive for RSpec/UnspecifiedException when not_to raise_error is used within a block. ([@​aarestad], [@​G-Rath])

v3.0.5

Compare Source

  • Fix false-negative and error for RSpec/MetadataStyle when non-literal args are used in metadata in EnforceStyle: hash. ([@​cbliard])
  • Improve offense message for RSpec/IndexedLet. ([@​earlopain])

v3.0.4

Compare Source

  • Fix false-negative for UnspecifiedException when matcher is chained. ([@​r7kamura])

v3.0.3

Compare Source

  • Add support for Unicode RIGHT SINGLE QUOTATION MARK in RSpec/ExampleWording. ([@​jdufresne])
  • Suppress deprecation warning for RSpec/MultipleExpectations, RSpec/MultipleMemoizedHelpers, and RSpec/NestedGroups cops. ([@​koic])

v3.0.2

Compare Source

  • Fix wrong autocorrect for RSpec/ScatteredSetup when hook contains heredoc. ([@​earlopain])
  • Fix false negative for RSpec/PredicateMatcher when expectation contains custom failure message. ([@​earlopain])
  • Facilitate the 3.0 upgrade flow with proper extracted cop messages. ([@​jeppester])

v3.0.1

Compare Source

  • Bump RuboCop requirement to +1.61. ([@​ydah])

v3.0.0

Compare Source

  • Remove extracted cops in Capybara, FactoryBot and Rails departments. ([@​ydah])
  • Remove RuboCop::RSpec::Language::NodePattern. ([@​ydah])
  • Remove RSpec/FilePath cop. ([@​ydah])
  • Remove RSpec/Capybara/FeatureMethods cop. If you are using this cop, change it to use RSpec/Dialect. ([@​ydah])
  • Add new RSpec/MissingExpectationTargetMethod cop. ([@​krororo])
  • Fix an error for 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

v2.31.0

Compare Source

  • Support AutoCorrect: contextual option for LSP. ([@​ydah])

v2.30.0

Compare Source

v2.29.2

Compare Source

  • Fix beginless and endless range bug for RepeatedIncludeExample cop. ([@​hasghari])
  • Fix a false positive for RSpec/RepeatedSubjectCall when subject is used as argument to function call. ([@​K-S-A])

v2.29.1

Compare Source

  • Fix an error in the default configuration. ([@​ydah])

v2.29.0

Compare Source

  • Fix an autocorrect error for RSpec/ExpectActual. ([@​bquorning])
  • Add new RSpec/UndescriptiveLiteralsDescription cop. ([@​ydah])
  • Add new RSpec/EmptyOutput cop. ([@​bquorning])

v2.28.0

Compare Source

  • Extract RSpec Rails cops to a separate repository, 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])

v2.27.1

Compare Source

  • Fix a false positive for RSpec/RepeatedSubjectCall when subject.method_call. ([@​ydah])
  • Add configuration option OnlyStaticConstants to RSpec/DescribedClass. ([@​ydah])

v2.27.0

Compare Source

  • Add new RSpec/IsExpectedSpecify cop. ([@​ydah])
  • Add new RSpec/RepeatedSubjectCall cop. ([@​drcapulet])
  • Add support for 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])
  • Support asserts with messages in RSpec/BeEmpty. ([@​G-Rath])
  • Fix a false positive for RSpec/ExpectActual when used with rspec-rails routing matchers. ([@​naveg])
  • Add configuration option ResponseMethods to RSpec/Rails/HaveHttpStatus. ([@​ydah])
  • Fix a false negative for RSpec/DescribedClass when class with constant. ([@​ydah])
  • Fix a false positive for RSpec/ExampleWithoutDescription when specify with multi-line block and missing description. ([@​ydah])
  • Fix an incorrect autocorrect for RSpec/ChangeByZero when compound expectations with line break before .by(0). ([@​ydah])

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/rubocop-rspec-3.x branch from f83f47b to f53297c Compare July 4, 2024 05:29
@renovate renovate bot force-pushed the renovate/rubocop-rspec-3.x branch from f53297c to a368f93 Compare July 14, 2024 17:43
@renovate renovate bot force-pushed the renovate/rubocop-rspec-3.x branch from a368f93 to 8d589d0 Compare August 7, 2024 23:47
@renovate renovate bot force-pushed the renovate/rubocop-rspec-3.x branch from 8d589d0 to d05ba20 Compare September 8, 2024 02:52
@renovate renovate bot force-pushed the renovate/rubocop-rspec-3.x branch from d05ba20 to dcaefeb Compare October 2, 2024 04:51
@renovate renovate bot force-pushed the renovate/rubocop-rspec-3.x branch from dcaefeb to fd2f9a4 Compare October 26, 2024 11:19
@renovate renovate bot force-pushed the renovate/rubocop-rspec-3.x branch from fd2f9a4 to 7323572 Compare December 13, 2024 05:48
@renovate renovate bot force-pushed the renovate/rubocop-rspec-3.x branch from 7323572 to ec59bcf Compare January 20, 2025 19:59
@renovate renovate bot force-pushed the renovate/rubocop-rspec-3.x branch from ec59bcf to 508aab6 Compare February 18, 2025 20:07
@renovate renovate bot force-pushed the renovate/rubocop-rspec-3.x branch from 508aab6 to d3a8dd6 Compare April 18, 2025 12:06
@renovate renovate bot force-pushed the renovate/rubocop-rspec-3.x branch from d3a8dd6 to 4dd3fd7 Compare September 2, 2025 03:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants