Upgrading rubocop-rspec 1 to 2
Unknown1.44.1 → 2.31.0New14Changed3Fixed13
Fetching 49 releases from GitHub…12 / 49
UnknownUpgrade verdict
DepDelta is still reading the notes for 37 of 49 releases, so breaking changes can't be ruled out yet.
In plain terms
- DepDelta is still reading the release notes in this range, so it can't rule out breaking changes yet.
- This page updates as the notes come in.
Must act Still reading release notes
DepDelta is still reading the release notes in this range. This updates as they come in.
Ruby requirement changed in 2.21.0: >= 2.4.0 → >= 2.7.0.
API changes
Generated by DepDelta from published Ruby source. Not mixed with prose notes.
- removed:
const RSpec.CONFIG
- removed:
const RSpec.Cop - removed:
module Layout
- removed:
class ExtraSpacing - removed:
static method ExtraSpacing.autocorrect_incompatible_with()
- removed:
class InvalidPredicateMatcher < Base - removed:
const Base.DEFAULT_CONFIGURATION - removed:
const Base.DEFAULT_PATTERN_RE - removed:
const ExampleLength.MSG - removed:
const ExpectActual.SUPPORTED_MATCHERS - removed:
const ImplicitSubject.MSG - removed:
const InvalidPredicateMatcher.MSG - removed:
const MessageExpectation.SUPPORTED_STYLES - removed:
const MessageSpies.SUPPORTED_STYLES - removed:
const Pending.PENDING - removed:
const Pending.SKIPPABLE - removed:
method Base.relevant_file?(_) - removed:
method EmptyLineAfterExample.allow_consecutive_one_liners?() - removed:
method EmptyLineAfterExample.allowed_one_liner?(_) - removed:
method EmptyLineAfterExample.consecutive_one_liner?(_) - removed:
method EmptyLineAfterExample.next_one_line_example?(_) - removed:
method EmptyLineAfterExample.next_sibling(_) - removed:
method InvalidPredicateMatcher.on_send(_) - removed:
method LeadingSubject.check_previous_nodes(_) - removed:
method NamedSubject.ignored_shared_example?(_) - removed:
method ScatteredSetup.lines_msg(_) - removed:
method ScatteredSetup.repeated_hooks(_) - removed:
method UnspecifiedException.block_with_args?(_) - removed:
method UnspecifiedException.empty_exception_matcher?(_) - added:
class BeEmpty < Base - added:
class BeEq < Base - added:
class BeNil < Base - added:
class ChangeByZero < Base - added:
class ClassCheck < Base - added:
class ContainExactly < Base - added:
class DuplicatedMetadata < Base - added:
class EmptyMetadata < Base - added:
class EmptyOutput < Base - added:
class Eq < Base - added:
class ExcessiveDocstringSpacing < Base - added:
class ExpectInLet < Base - added:
class IdenticalEqualityAssertion < Base - added:
class IndexedLet < Base - added:
class IsExpectedSpecify < Base - added:
class MatchArray < Base - added:
class MetadataStyle < Base - added:
class NoExpectationExample < Base - added:
class PendingWithoutReason < Base - added:
class ReceiveMessages < Base - added:
class RedundantAround < Base - added:
class RedundantPredicateMatcher < Base - added:
class RemoveConst < Base - added:
class RepeatedSubjectCall < Base - added:
class SkipBlockInsideExample < Base - added:
class SortMetadata < Base - added:
class SpecFilePathFormat < Base - added:
class SpecFilePathSuffix < Base - added:
class SubjectDeclaration < Base - added:
class UndescriptiveLiteralsDescription < Base - added:
class VerifiedDoubleReference < Base - added:
const AnyInstance.RESTRICT_ON_SEND - added:
const Be.RESTRICT_ON_SEND - added:
const BeEmpty.MSG - added:
const BeEmpty.RESTRICT_ON_SEND - added:
const BeEq.MSG - added:
const BeEq.RESTRICT_ON_SEND - added:
const BeEql.RESTRICT_ON_SEND - added:
const BeNil.BE_MSG - added:
const BeNil.BE_NIL_MSG - added:
const BeNil.RESTRICT_ON_SEND - added:
const BeforeAfterAll.RESTRICT_ON_SEND - added:
const Capybara.CurrentPathExpectation - added:
const Capybara.MatchStyle - added:
const Capybara.NegationMatcher - added:
const Capybara.SpecificActions - added:
const Capybara.SpecificFinders - added:
const Capybara.SpecificMatcher - added:
const Capybara.VisibilityMatcher - added:
const ChangeByZero.CHANGE_METHODS - added:
const ChangeByZero.MSG - added:
const ChangeByZero.MSG_COMPOUND - added:
const ChangeByZero.RESTRICT_ON_SEND - added:
const ClassCheck.METHOD_NAMES_FOR_BE_A - added:
const ClassCheck.METHOD_NAMES_FOR_KIND_OF - added:
const ClassCheck.MSG - added:
const ClassCheck.PREFERRED_METHOD_NAME_BY_STYLE - added:
const ClassCheck.RESTRICT_ON_SEND - added:
const ContainExactly.MSG - added:
const ContainExactly.RESTRICT_ON_SEND - added:
const DescribeSymbol.RESTRICT_ON_SEND - added:
const DuplicatedMetadata.MSG - added:
const EmptyMetadata.MSG - added:
const EmptyOutput.MSG - added:
const EmptyOutput.RESTRICT_ON_SEND - added:
const Eq.MSG - added:
const Eq.RESTRICT_ON_SEND - added:
const ExampleLength.LABEL - added:
const ExampleWording.MSG_INSUFFICIENT_DESCRIPTION - added:
const ExampleWording.MSG_WILL - added:
const ExampleWording.WILL_PREFIX - added:
const ExcessiveDocstringSpacing.MSG - added:
const ExpectActual.CORRECTABLE_MATCHERS - added:
const ExpectActual.RESTRICT_ON_SEND - added:
const ExpectActual.SKIPPED_MATCHERS - added:
const ExpectChange.RESTRICT_ON_SEND - added:
const ExpectInLet.MSG - added:
const FactoryBot.AttributeDefinedStatically - added:
const FactoryBot.ConsistentParenthesesStyle - added:
const FactoryBot.CreateList - added:
const FactoryBot.FactoryClassName - added:
const FactoryBot.FactoryNameStyle - added:
const FactoryBot.SyntaxMethods - added:
const IdenticalEqualityAssertion.MSG - added:
const IdenticalEqualityAssertion.RESTRICT_ON_SEND - added:
const ImplicitBlockExpectation.RESTRICT_ON_SEND - added:
const ImplicitExpect.RESTRICT_ON_SEND - added:
const ImplicitSubject.MSG_REQUIRE_EXPLICIT - added:
const ImplicitSubject.MSG_REQUIRE_IMPLICIT - added:
const ImplicitSubject.RESTRICT_ON_SEND - added:
const IndexedLet.INDEX_REGEX - added:
const IndexedLet.MSG - added:
const IndexedLet.SUFFIX_INDEX_REGEX - added:
const IsExpectedSpecify.IS_EXPECTED_METHODS - added:
const IsExpectedSpecify.MSG - added:
const IsExpectedSpecify.RESTRICT_ON_SEND - added:
const ItBehavesLike.RESTRICT_ON_SEND - added:
const MatchArray.MSG - added:
const MatchArray.RESTRICT_ON_SEND - added:
const MessageChain.RESTRICT_ON_SEND - added:
const MessageExpectation.RESTRICT_ON_SEND - added:
const MessageSpies.RESTRICT_ON_SEND - added:
const NoExpectationExample.MSG - added:
const NotToNot.RESTRICT_ON_SEND - added:
const PendingWithoutReason.MSG - added:
const PredicateMatcher.RESTRICT_ON_SEND - added:
const Rails.AvoidSetupHook - added:
const Rails.HaveHttpStatus - added:
const Rails.HttpStatus - added:
const Rails.InferredSpecType - added:
const Rails.MinitestAssertions - added:
const Rails.NegationBeValid - added:
const Rails.TravelAround - added:
const ReceiveCounts.RESTRICT_ON_SEND - added:
const ReceiveMessages.MSG - added:
const ReceiveNever.RESTRICT_ON_SEND - added:
const RedundantAround.MSG - added:
const RedundantAround.RESTRICT_ON_SEND - added:
const RedundantPredicateMatcher.MSG - added:
const RedundantPredicateMatcher.RESTRICT_ON_SEND - added:
const RemoveConst.MSG - added:
const RemoveConst.RESTRICT_ON_SEND - added:
const RepeatedSubjectCall.MSG - added:
const ReturnFromStub.RESTRICT_ON_SEND - added:
const SingleArgumentMessageChain.RESTRICT_ON_SEND - added:
const SkipBlockInsideExample.MSG - added:
const SortMetadata.MSG - added:
const SpecFilePathFormat.MSG - added:
const SpecFilePathSuffix.MSG - added:
const StubbedMock.RESTRICT_ON_SEND - added:
const SubjectDeclaration.MSG_LET - added:
const SubjectDeclaration.MSG_REDUNDANT - added:
const UndescriptiveLiteralsDescription.MSG - added:
const UnspecifiedException.RESTRICT_ON_SEND - added:
const Variable.Helpers - added:
const Variable.Subjects - added:
const VerifiedDoubleReference.MSG - added:
const VerifiedDoubleReference.REFERENCE_TYPE_STYLES - added:
const VerifiedDoubleReference.RESTRICT_ON_SEND - added:
const VerifiedDoubles.RESTRICT_ON_SEND - added:
const VoidExpect.RESTRICT_ON_SEND - added:
method AroundBlock.on_numblock(_) - added:
method Base.on_new_investigation() - added:
method BeEmpty.on_send(_) - added:
method BeEq.on_send(_) - added:
method BeNil.on_send(_) - added:
method ChangeByZero.on_send(_) - added:
method ClassCheck.on_send(_) - added:
method CommentsHelp.begin_pos_with_comment(_) - added:
method CommentsHelp.buffer() - added:
method CommentsHelp.end_line_position(_) - added:
method CommentsHelp.source_range_with_comment(_) - added:
method CommentsHelp.start_line_position(_) - added:
method ContainExactly.on_send(_) - added:
method DuplicatedMetadata.on_metadata(_, _) - added:
method EmptyLineAfterHook.on_numblock(_) - added:
method EmptyLineSeparation.last_child?(_) - added:
method EmptyLineSeparation.missing_separating_line(_) - added:
method EmptyLineSeparation.missing_separating_line_offense(_) - added:
method EmptyLineSeparation.offending_loc(_) - added:
method EmptyMetadata.on_metadata(_, _) - added:
method EmptyOutput.on_send(_) - added:
method Eq.on_send(_) - added:
method ExcessiveDocstringSpacing.on_send(_) - added:
method ExpectInHook.on_numblock(_) - added:
method ExpectInLet.on_block(_) - added:
method ExpectInLet.on_numblock(_) - added:
method FileHelp.expanded_file_path() - added:
method FinalEndLocation.final_end_location(_) - added:
method HookArgument.on_numblock(_) - added:
method HooksBeforeExamples.on_numblock(_) - added:
method IdenticalEqualityAssertion.on_send(_) - added:
method IndexedLet.on_block(_) - added:
method IsExpectedSpecify.on_send(_) - added:
method IteratedExpectation.on_numblock(_) - added:
method MatchArray.on_send(_) - added:
method Metadata.on_block(_) - added:
method Metadata.on_metadata(_, _) - added:
method Metadata.on_numblock(_) - added:
method MetadataStyle.on_metadata(_, _) - added:
method NoExpectationExample.on_block(_) - added:
method NoExpectationExample.on_numblock(_) - added:
method PendingWithoutReason.on_send(_) - added:
method ReceiveMessages.on_begin(_) - added:
method RedundantAround.on_block(_) - added:
method RedundantAround.on_numblock(_) - added:
method RedundantAround.on_send(_) - added:
method RedundantPredicateMatcher.on_send(_) - added:
method RemoveConst.on_send(_) - added:
method RepeatedSubjectCall.on_top_level_group(_) - added:
method SkipBlockInsideExample.on_block(_) - added:
method SkipBlockInsideExample.on_numblock(_) - added:
method SortMetadata.on_metadata(_, _) - added:
method SpecFilePathFormat.on_top_level_example_group(_) - added:
method SpecFilePathSuffix.on_top_level_example_group(_) - added:
method SubjectDeclaration.on_send(_) - added:
method TopLevelGroup.on_new_investigation() - added:
method TopLevelGroup.top_level_groups() - added:
method UndescriptiveLiteralsDescription.on_block(_) - added:
method VerifiedDoubleReference.on_send(_) - added:
module CommentsHelp - added:
module EmptyLineSeparation - added:
module FileHelp - added:
module FinalEndLocation - added:
module InsideExampleGroup - added:
module LocationHelp - added:
module Metadata - added:
module Namespace - added:
module SkipOrPending - added:
module TopLevelGroup - added:
module Variable - added:
static method LetBeforeExamples.autocorrect_incompatible_with() - added:
static method LocationHelp.arguments_with_whitespace(_) - added:
static method LocationHelp.block_with_whitespace(_)
- removed:
class CurrentPathExpectation < Base - removed:
class VisibilityMatcher < Base - removed:
const CurrentPathExpectation.MSG - removed:
const VisibilityMatcher.CAPYBARA_MATCHER_METHODS - removed:
const VisibilityMatcher.MSG_FALSE - removed:
const VisibilityMatcher.MSG_TRUE - removed:
method CurrentPathExpectation.on_send(_) - removed:
method VisibilityMatcher.on_send(_)
- removed:
class AttributeDefinedStatically < Base - removed:
class CreateList < Base - removed:
class FactoryClassName < Base - removed:
const AttributeDefinedStatically.MSG - removed:
const CreateList.MSG_CREATE_LIST - removed:
const CreateList.MSG_N_TIMES - removed:
const FactoryClassName.ALLOWED_CONSTANTS - removed:
const FactoryClassName.MSG - removed:
method AttributeDefinedStatically.on_block(_) - removed:
method CreateList.on_block(_) - removed:
method CreateList.on_send(_) - removed:
method FactoryClassName.on_send(_)
- removed:
class CreateListCorrector - removed:
class TimesCorrector - removed:
constructor CreateListCorrector(_) - removed:
constructor TimesCorrector(_) - removed:
method CreateListCorrector.call(_) - removed:
method TimesCorrector.call(_) - removed:
module Corrector
- removed:
class HttpStatus < Base - removed:
method HttpStatus.on_send(_)
- removed:
class NumericStyleChecker - removed:
class SymbolicStyleChecker - removed:
const NumericStyleChecker.ALLOWED_STATUSES - removed:
const NumericStyleChecker.MSG - removed:
const SymbolicStyleChecker.MSG - removed:
constructor NumericStyleChecker(_) - removed:
constructor SymbolicStyleChecker(_) - removed:
method NumericStyleChecker.message() - removed:
method NumericStyleChecker.offensive?() - removed:
method NumericStyleChecker.preferred_style() - removed:
method SymbolicStyleChecker.message() - removed:
method SymbolicStyleChecker.offensive?() - removed:
method SymbolicStyleChecker.preferred_style() - removed:
property NumericStyleChecker.node: reader - removed:
property SymbolicStyleChecker.node: reader
- removed:
class Checker - removed:
const Checker.MSG - removed:
constructor Checker(_) - removed:
method Checker.message() - removed:
method Checker.preferred_style() - removed:
property Checker.node: reader - added:
class StringChecker - added:
class SymbolChecker - added:
const StringChecker.MSG - added:
const SymbolChecker.MSG - added:
constructor StringChecker(_) - added:
constructor SymbolChecker(_) - added:
method StringChecker.message() - added:
method StringChecker.preferred_style() - added:
method SymbolChecker.message() - added:
method SymbolChecker.preferred_style() - added:
property StringChecker.node: reader - added:
property SymbolChecker.node: reader
- removed:
const ConfigFormatter.NAMESPACES - removed:
const ConfigFormatter.STYLE_GUIDE_BASE_URL - removed:
const FactoryBot.ATTRIBUTE_DEFINING_METHODS - removed:
const FactoryBot.DEFINITION_PROXY_METHODS - removed:
const FactoryBot.RESERVED_METHODS - removed:
const FactoryBot.UNPROXIED_METHODS - removed:
const Language.ALL - removed:
method EmptyLineSeparation.last_child?(_) - removed:
method EmptyLineSeparation.missing_separating_line(_) - removed:
method EmptyLineSeparation.missing_separating_line_offense(_) - removed:
method EmptyLineSeparation.offending_loc(_) - removed:
method FinalEndLocation.final_end_location(_) - removed:
method TopLevelDescribe.on_send(_) - removed:
method TopLevelGroup.on_new_investigation() - removed:
method TopLevelGroup.top_level_groups() - removed:
module EmptyLineSeparation - removed:
module FactoryBot - removed:
module FinalEndLocation - removed:
module TopLevelDescribe - removed:
module TopLevelGroup - removed:
module Variable - removed:
static method FactoryBot.attribute_defining_methods() - removed:
static method FactoryBot.reserved_methods() - added:
const ConfigFormatter.AMENDMENTS - added:
const ConfigFormatter.COP_DOC_BASE_URL - added:
const ConfigFormatter.EXTENSION_ROOT_DEPARTMENT - added:
const ConfigFormatter.EXTRACTED_COPS - added:
const ConfigFormatter.SUBDEPARTMENTS - added:
const Wording.WILL_NOT_PREFIX - added:
const Wording.WONT_PREFIX - added:
static property Language.config: accessor
- removed:
const CodeObject.COP_CLASS_NAME - added:
const CodeObject.RSPEC_COP_CLASS_NAME - added:
const CodeObject.RUBOCOP_COP_CLASS_NAME
- removed:
class SelectorSet - removed:
const ExampleGroups.ALL - removed:
const Examples.ALL - removed:
const Includes.ALL - removed:
const SharedGroups.ALL - removed:
constructor SelectorSet(_) - removed:
method SelectorSet.+(_) - removed:
method SelectorSet.==(_) - removed:
method SelectorSet.block_or_block_pass_pattern() - removed:
method SelectorSet.block_pass_pattern() - removed:
method SelectorSet.block_pattern() - removed:
method SelectorSet.include?(_) - removed:
method SelectorSet.node_pattern() - removed:
method SelectorSet.node_pattern_union() - removed:
method SelectorSet.send_or_block_or_block_pass_pattern() - removed:
method SelectorSet.send_pattern() - removed:
method SelectorSet.to_a() - removed:
module ExampleGroups - removed:
module Examples - removed:
module Expectations - removed:
module Hooks - removed:
module Includes - removed:
module Runners - removed:
module SharedGroups - removed:
module Subject - removed:
protected property SelectorSet.selectors: reader - added:
const HookScopes.ALL - added:
method NodePattern.block_or_numblock_pattern(_) - added:
method NodePattern.block_pattern(_) - added:
method NodePattern.numblock_pattern(_) - added:
method NodePattern.send_pattern(_) - added:
module HookScopes - added:
module Subjects - added:
static method Helpers.all(_) - added:
static method HookScopes.all(_) - added:
static method Subjects.all(_)
- removed:
class FOCUSED < SelectorSet.new(%i[fdescribe fcontext ffeature]) - removed:
class GROUPS < SelectorSet.new(%i[describe context feature example_group]) - removed:
class SKIPPED < SelectorSet.new(%i[xdescribe xcontext xfeature])
- removed:
class EXAMPLES < SelectorSet.new(%i[it specify example scenario its]) - removed:
class FOCUSED < SelectorSet.new(%i[fit fspecify fexample fscenario focus]) - removed:
class PENDING < SelectorSet.new(%i[pending]) - removed:
class SKIPPED < SelectorSet.new(%i[xit xspecify xexample xscenario skip])
- removed:
class ALL < SelectorSet.new(%i[expect is_expected expect_any_instance_of])
- removed:
class ALL < SelectorSet.new(%i[let let!])
- removed:
class ALL < SelectorSet.new(%i[prepend_before before append_before around prepend_after after append_after]) - removed:
module Scopes
- removed:
class ALL < SelectorSet.new(%i[each example context all suite])
- removed:
class CONTEXT < SelectorSet.new(%i[include_context]) - removed:
class EXAMPLES < SelectorSet.new(%i[it_behaves_like it_should_behave_like include_examples])
- removed:
class ALL < SelectorSet.new(%i[to to_not not_to])
- removed:
class CONTEXT < SelectorSet.new(%i[shared_context]) - removed:
class EXAMPLES < SelectorSet.new(%i[shared_examples shared_examples_for])
- removed:
class ALL < SelectorSet.new(%i[subject subject!])