Upgrading rubocop-rspec 0.18 to 1
Unknown0.18.1 → 1.44.1
Fetching 71 releases from GitHub…0 / 71
UnknownUpgrade verdict
DepDelta is still reading the notes for this range, 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 1.39.0: >= 1.9.2 → >= 2.4.0.
API changes
Generated by DepDelta from published Ruby source. Not mixed with prose notes.
- removed:
module Rubocop - added:
module RuboCop
- added:
const RSpec.CONFIG - added:
module Cop - added:
module RSpec
- added:
const RSpec.Cop - added:
module Layout - added:
module RSpec
- added:
class ExtraSpacing - added:
static method ExtraSpacing.autocorrect_incompatible_with()
- added:
class AlignLeftLetBrace < Base - added:
class AlignRightLetBrace < Base - added:
class AnyInstance < Base - added:
class AroundBlock < Base - added:
class Base < ::RuboCop::Cop::Base - added:
class Be < Base - added:
class BeEql < Base - added:
class BeforeAfterAll < Base - added:
class ContextMethod < Base - added:
class ContextWording < Base - added:
class DescribeClass < Base - added:
class DescribeMethod < Base - added:
class DescribeSymbol < Base - added:
class DescribedClass < Base - added:
class DescribedClassModuleWrapping < Base - added:
class Dialect < Base - added:
class EmptyExampleGroup < Base - added:
class EmptyHook < Base - added:
class EmptyLineAfterExample < Base - added:
class EmptyLineAfterExampleGroup < Base - added:
class EmptyLineAfterFinalLet < Base - added:
class EmptyLineAfterHook < Base - added:
class EmptyLineAfterSubject < Base - added:
class ExampleLength < Base - added:
class ExampleWithoutDescription < Base - added:
class ExampleWording < Base - added:
class ExpectActual < Base - added:
class ExpectChange < Base - added:
class ExpectInHook < Base - added:
class ExpectOutput < Base - added:
class FilePath < Base - added:
class Focus < Base - added:
class HookArgument < Base - added:
class HooksBeforeExamples < Base - added:
class ImplicitBlockExpectation < Base - added:
class ImplicitExpect < Base - added:
class ImplicitSubject < Base - added:
class InstanceSpy < Base - added:
class InstanceVariable < Base - added:
class InvalidPredicateMatcher < Base - added:
class ItBehavesLike < Base - added:
class IteratedExpectation < Base - added:
class LeadingSubject < Base - added:
class LeakyConstantDeclaration < Base - added:
class LetBeforeExamples < Base - added:
class LetSetup < Base - added:
class MessageChain < Base - added:
class MessageExpectation < Base - added:
class MessageSpies < Base - added:
class MissingExampleGroupArgument < Base - added:
class MultipleDescribes < Base - added:
class MultipleExpectations < Base - added:
class MultipleMemoizedHelpers < Base - added:
class MultipleSubjects < Base - added:
class NamedSubject < Base - added:
class NestedGroups < Base - added:
class NotToNot < Base - added:
class OverwritingSetup < Base - added:
class Pending < Base - added:
class PredicateMatcher < Base - added:
class ReceiveCounts < Base - added:
class ReceiveNever < Base - added:
class RepeatedDescription < Base - added:
class RepeatedExample < Base - added:
class RepeatedExampleGroupBody < Base - added:
class RepeatedExampleGroupDescription < Base - added:
class RepeatedIncludeExample < Base - added:
class ReturnFromStub < Base - added:
class ScatteredLet < Base - added:
class ScatteredSetup < Base - added:
class SharedContext < Base - added:
class SharedExamples < Base - added:
class SingleArgumentMessageChain < Base - added:
class StubbedMock < Base - added:
class SubjectStub < Base - added:
class UnspecifiedException < Base - added:
class VariableDefinition < Base - added:
class VariableName < Base - added:
class VerifiedDoubles < Base - added:
class VoidExpect < Base - added:
class Yield < Base - added:
const AlignLeftLetBrace.MSG - added:
const AlignRightLetBrace.MSG - added:
const AnyInstance.MSG - added:
const AroundBlock.MSG_NO_ARG - added:
const AroundBlock.MSG_UNUSED_ARG - added:
const Base.DEFAULT_CONFIGURATION - added:
const Base.DEFAULT_PATTERN_RE - added:
const Be.MSG - added:
const BeEql.MSG - added:
const BeforeAfterAll.MSG - added:
const ContextMethod.MSG - added:
const ContextWording.MSG - added:
const DescribeClass.MSG - added:
const DescribeMethod.MSG - added:
const DescribeSymbol.MSG - added:
const DescribedClass.DESCRIBED_CLASS - added:
const DescribedClass.MSG - added:
const DescribedClassModuleWrapping.MSG - added:
const Dialect.MSG - added:
const EmptyExampleGroup.MSG - added:
const EmptyHook.MSG - added:
const EmptyLineAfterExample.MSG - added:
const EmptyLineAfterExampleGroup.MSG - added:
const EmptyLineAfterFinalLet.MSG - added:
const EmptyLineAfterHook.MSG - added:
const EmptyLineAfterSubject.MSG - added:
const ExampleLength.MSG - added:
const ExampleWithoutDescription.MSG_ADD_DESCRIPTION - added:
const ExampleWithoutDescription.MSG_DEFAULT_ARGUMENT - added:
const ExampleWording.IT_PREFIX - added:
const ExampleWording.MSG_IT - added:
const ExampleWording.MSG_SHOULD - added:
const ExampleWording.SHOULD_PREFIX - added:
const ExpectActual.COMPLEX_LITERALS - added:
const ExpectActual.MSG - added:
const ExpectActual.SIMPLE_LITERALS - added:
const ExpectActual.SUPPORTED_MATCHERS - added:
const ExpectChange.MSG_BLOCK - added:
const ExpectChange.MSG_CALL - added:
const ExpectInHook.MSG - added:
const ExpectOutput.MSG - added:
const ExplicitHelper.BUILT_IN_MATCHERS - added:
const ExplicitHelper.MSG_EXPLICIT - added:
const FilePath.MSG - added:
const Focus.MSG - added:
const HookArgument.EXPLICIT_MSG - added:
const HookArgument.IMPLICIT_MSG - added:
const HooksBeforeExamples.MSG - added:
const ImplicitBlockExpectation.MSG - added:
const ImplicitExpect.ENFORCED_REPLACEMENTS - added:
const ImplicitExpect.MSG - added:
const ImplicitSubject.MSG - added:
const InflectedHelper.MSG_INFLECTED - added:
const InstanceSpy.MSG - added:
const InstanceVariable.MSG - added:
const InvalidPredicateMatcher.MSG - added:
const ItBehavesLike.MSG - added:
const IteratedExpectation.MSG - added:
const LeadingSubject.MSG - added:
const LeakyConstantDeclaration.MSG_CLASS - added:
const LeakyConstantDeclaration.MSG_CONST - added:
const LeakyConstantDeclaration.MSG_MODULE - added:
const LetBeforeExamples.MSG - added:
const LetSetup.MSG - added:
const MessageChain.MSG - added:
const MessageExpectation.MSG - added:
const MessageExpectation.SUPPORTED_STYLES - added:
const MessageSpies.MSG_HAVE_RECEIVED - added:
const MessageSpies.MSG_RECEIVE - added:
const MessageSpies.SUPPORTED_STYLES - added:
const MissingExampleGroupArgument.MSG - added:
const MultipleDescribes.MSG - added:
const MultipleExpectations.ANYTHING - added:
const MultipleExpectations.MSG - added:
const MultipleExpectations.TRUE - added:
const MultipleMemoizedHelpers.MSG - added:
const MultipleSubjects.MSG - added:
const NamedSubject.MSG - added:
const NestedGroups.DEPRECATED_MAX_KEY - added:
const NestedGroups.DEPRECATION_WARNING - added:
const NestedGroups.MSG - added:
const NotToNot.MSG - added:
const OverwritingSetup.MSG - added:
const Pending.MSG - added:
const Pending.PENDING - added:
const Pending.SKIPPABLE - added:
const ReceiveCounts.MSG - added:
const ReceiveNever.MSG - added:
const RepeatedDescription.MSG - added:
const RepeatedExample.MSG - added:
const RepeatedExampleGroupBody.MSG - added:
const RepeatedExampleGroupDescription.MSG - added:
const RepeatedIncludeExample.MSG - added:
const ReturnFromStub.MSG_AND_RETURN - added:
const ReturnFromStub.MSG_BLOCK - added:
const ScatteredLet.MSG - added:
const ScatteredSetup.MSG - added:
const SharedContext.MSG_CONTEXT - added:
const SharedContext.MSG_EXAMPLES - added:
const SingleArgumentMessageChain.MSG - added:
const StubbedMock.MSG - added:
const SubjectStub.MSG - added:
const UnspecifiedException.MSG - added:
const VariableDefinition.MSG - added:
const VariableName.MSG - added:
const VerifiedDoubles.MSG - added:
const VoidExpect.MSG - added:
const Yield.MSG - added:
method AlignLeftLetBrace.on_new_investigation() - added:
method AlignRightLetBrace.on_new_investigation() - added:
method AnyInstance.on_send(_) - added:
method AroundBlock.on_block(_) - added:
method Base.relevant_file?(_) - added:
method Be.on_send(_) - added:
method BeEql.on_send(_) - added:
method BeforeAfterAll.on_send(_) - added:
method ContextMethod.on_block(_) - added:
method ContextWording.on_block(_) - added:
method DescribeClass.on_top_level_group(_) - added:
method DescribeMethod.on_top_level_group(_) - added:
method DescribeSymbol.on_send(_) - added:
method DescribedClass.on_block(_) - added:
method DescribedClassModuleWrapping.on_module(_) - added:
method Dialect.on_send(_) - added:
method EmptyExampleGroup.on_block(_) - added:
method EmptyHook.on_block(_) - added:
method EmptyLineAfterExample.allow_consecutive_one_liners?() - added:
method EmptyLineAfterExample.allowed_one_liner?(_) - added:
method EmptyLineAfterExample.consecutive_one_liner?(_) - added:
method EmptyLineAfterExample.next_one_line_example?(_) - added:
method EmptyLineAfterExample.next_sibling(_) - added:
method EmptyLineAfterExample.on_block(_) - added:
method EmptyLineAfterExampleGroup.on_block(_) - added:
method EmptyLineAfterFinalLet.on_block(_) - added:
method EmptyLineAfterHook.on_block(_) - added:
method EmptyLineAfterSubject.on_block(_) - added:
method ExampleLength.on_block(_) - added:
method ExampleWithoutDescription.on_block(_) - added:
method ExampleWording.on_block(_) - added:
method ExpectActual.on_send(_) - added:
method ExpectChange.on_block(_) - added:
method ExpectChange.on_send(_) - added:
method ExpectInHook.on_block(_) - added:
method ExpectOutput.on_gvasgn(_) - added:
method FilePath.on_top_level_example_group(_) - added:
method Focus.on_send(_) - added:
method HookArgument.on_block(_) - added:
method HooksBeforeExamples.on_block(_) - added:
method ImplicitBlockExpectation.on_send(_) - added:
method ImplicitExpect.on_send(_) - added:
method ImplicitSubject.on_send(_) - added:
method InstanceSpy.on_block(_) - added:
method InstanceVariable.on_top_level_group(_) - added:
method InvalidPredicateMatcher.on_send(_) - added:
method ItBehavesLike.on_send(_) - added:
method IteratedExpectation.on_block(_) - added:
method LeadingSubject.check_previous_nodes(_) - added:
method LeadingSubject.on_block(_) - added:
method LeakyConstantDeclaration.on_casgn(_) - added:
method LeakyConstantDeclaration.on_class(_) - added:
method LeakyConstantDeclaration.on_module(_) - added:
method LetBeforeExamples.on_block(_) - added:
method LetSetup.on_block(_) - added:
method MessageChain.on_send(_) - added:
method MessageExpectation.on_send(_) - added:
method MessageSpies.on_send(_) - added:
method MissingExampleGroupArgument.on_block(_) - added:
method MultipleDescribes.on_top_level_group(_) - added:
method MultipleExpectations.on_block(_) - added:
method MultipleMemoizedHelpers.on_block(_) - added:
method MultipleMemoizedHelpers.on_new_investigation() - added:
method MultipleSubjects.on_block(_) - added:
method NamedSubject.ignored_shared_example?(_) - added:
method NamedSubject.on_block(_) - added:
method NestedGroups.on_top_level_group(_) - added:
method NotToNot.on_send(_) - added:
method OverwritingSetup.on_block(_) - added:
method Pending.on_send(_) - added:
method PredicateMatcher.on_block(_) - added:
method PredicateMatcher.on_send(_) - added:
method ReceiveCounts.on_send(_) - added:
method ReceiveNever.on_send(_) - added:
method RepeatedDescription.on_block(_) - added:
method RepeatedExample.on_block(_) - added:
method RepeatedExampleGroupBody.on_begin(_) - added:
method RepeatedExampleGroupDescription.on_begin(_) - added:
method RepeatedIncludeExample.on_begin(_) - added:
method ReturnFromStub.on_block(_) - added:
method ReturnFromStub.on_send(_) - added:
method ScatteredLet.on_block(_) - added:
method ScatteredSetup.lines_msg(_) - added:
method ScatteredSetup.on_block(_) - added:
method ScatteredSetup.repeated_hooks(_) - added:
method SharedContext.on_block(_) - added:
method SharedExamples.on_send(_) - added:
method SingleArgumentMessageChain.on_send(_) - added:
method StubbedMock.on_send(_) - added:
method SubjectStub.on_top_level_group(_) - added:
method UnspecifiedException.block_with_args?(_) - added:
method UnspecifiedException.empty_exception_matcher?(_) - added:
method UnspecifiedException.on_send(_) - added:
method VariableDefinition.on_send(_) - added:
method VariableName.on_send(_) - added:
method VerifiedDoubles.on_send(_) - added:
method VoidExpect.on_block(_) - added:
method VoidExpect.on_send(_) - added:
method Yield.on_block(_) - added:
module Capybara - added:
module ExplicitHelper - added:
module FactoryBot - added:
module InflectedHelper - added:
module Rails - added:
static method AlignLeftLetBrace.autocorrect_incompatible_with() - added:
static method AlignRightLetBrace.autocorrect_incompatible_with()
- added:
class CurrentPathExpectation < Base - added:
class FeatureMethods < Base - added:
class VisibilityMatcher < Base - added:
const CurrentPathExpectation.MSG - added:
const FeatureMethods.MAP - added:
const FeatureMethods.MSG - added:
const VisibilityMatcher.CAPYBARA_MATCHER_METHODS - added:
const VisibilityMatcher.MSG_FALSE - added:
const VisibilityMatcher.MSG_TRUE - added:
method CurrentPathExpectation.on_send(_) - added:
method FeatureMethods.message(_) - added:
method FeatureMethods.on_block(_) - added:
method VisibilityMatcher.on_send(_)
- added:
class AttributeDefinedStatically < Base - added:
class CreateList < Base - added:
class FactoryClassName < Base - added:
const AttributeDefinedStatically.MSG - added:
const CreateList.MSG_CREATE_LIST - added:
const CreateList.MSG_N_TIMES - added:
const FactoryClassName.ALLOWED_CONSTANTS - added:
const FactoryClassName.MSG - added:
method AttributeDefinedStatically.on_block(_) - added:
method CreateList.on_block(_) - added:
method CreateList.on_send(_) - added:
method FactoryClassName.on_send(_)
- added:
class CreateListCorrector - added:
class TimesCorrector - added:
constructor CreateListCorrector(_) - added:
constructor TimesCorrector(_) - added:
method CreateListCorrector.call(_) - added:
method TimesCorrector.call(_) - added:
module Corrector
- added:
class HttpStatus < Base - added:
method HttpStatus.on_send(_)
- added:
class NumericStyleChecker - added:
class SymbolicStyleChecker - added:
const NumericStyleChecker.ALLOWED_STATUSES - added:
const NumericStyleChecker.MSG - added:
const SymbolicStyleChecker.MSG - added:
constructor NumericStyleChecker(_) - added:
constructor SymbolicStyleChecker(_) - added:
method NumericStyleChecker.message() - added:
method NumericStyleChecker.offensive?() - added:
method NumericStyleChecker.preferred_style() - added:
method SymbolicStyleChecker.message() - added:
method SymbolicStyleChecker.offensive?() - added:
method SymbolicStyleChecker.preferred_style() - added:
property NumericStyleChecker.node: reader - added:
property SymbolicStyleChecker.node: reader
- added:
class AndReturnCallCorrector - added:
class BlockBodyCorrector - added:
constructor AndReturnCallCorrector(_) - added:
constructor BlockBodyCorrector(_) - added:
method AndReturnCallCorrector.call(_) - added:
method BlockBodyCorrector.call(_)
- added:
class NULL_BLOCK_BODY < Struct.new(:loc, :source)
- added:
class Checker - added:
const Checker.MSG - added:
constructor Checker(_) - added:
method Checker.message() - added:
method Checker.preferred_style() - added:
property Checker.node: reader
- added:
class AlignLetBrace - added:
class Concept - added:
class ConfigFormatter - added:
class DescriptionExtractor - added:
class Example < Concept - added:
class ExampleGroup < Concept - added:
class Hook < Concept - added:
class Wording - added:
const ConfigFormatter.NAMESPACES - added:
const ConfigFormatter.STYLE_GUIDE_BASE_URL - added:
const FactoryBot.ATTRIBUTE_DEFINING_METHODS - added:
const FactoryBot.DEFINITION_PROXY_METHODS - added:
const FactoryBot.RESERVED_METHODS - added:
const FactoryBot.UNPROXIED_METHODS - added:
const Language.ALL - added:
const Version.STRING - added:
const Wording.ES_SUFFIX_PATTERN - added:
const Wording.IES_SUFFIX_PATTERN - added:
const Wording.SHOULDNT_BE_PREFIX - added:
const Wording.SHOULDNT_PREFIX - added:
constructor AlignLetBrace(_, _) - added:
constructor Concept(_) - added:
constructor ConfigFormatter(_, _) - added:
constructor DescriptionExtractor(_) - added:
constructor Wording(_, ignore:, replace:) - added:
method AlignLetBrace.indent_for(_) - added:
method AlignLetBrace.offending_tokens() - added:
method Concept.eql?(_) - added:
method Concept.hash() - added:
method Concept.to_node() - added:
method ConfigFormatter.dump() - added:
method DescriptionExtractor.to_h() - 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 Example.definition() - added:
method Example.doc_string() - added:
method Example.implementation() - added:
method Example.metadata() - added:
method ExampleGroup.examples() - added:
method ExampleGroup.hooks() - added:
method ExampleGroup.lets() - added:
method ExampleGroup.subjects() - added:
method FinalEndLocation.final_end_location(_) - added:
method Hook.example?() - added:
method Hook.knowable_scope?() - added:
method Hook.metadata() - added:
method Hook.name() - added:
method Hook.scope() - added:
method Node.recursive_literal_or_const?() - added:
method TopLevelDescribe.on_send(_) - added:
method TopLevelGroup.on_new_investigation() - added:
method TopLevelGroup.top_level_groups() - added:
method Wording.rewrite() - added:
module Corrector - added:
module EmptyLineSeparation - added:
module FactoryBot - added:
module FinalEndLocation - added:
module Inject - added:
module Language - added:
module Node - added:
module TopLevelDescribe - added:
module TopLevelGroup - added:
module Variable - added:
module Version - added:
protected property Concept.node: reader - added:
static method FactoryBot.attribute_defining_methods() - added:
static method FactoryBot.reserved_methods() - added:
static method Inject.defaults!()
- added:
class MoveNode - added:
constructor MoveNode(_, _, _) - added:
method MoveNode.move_after(_) - added:
method MoveNode.move_before(_) - added:
property MoveNode.corrector: reader - added:
property MoveNode.original: reader - added:
property MoveNode.processed_source: reader
- added:
class CodeObject - added:
const CodeObject.COP_CLASS_NAME - added:
const CodeObject.RSPEC_NAMESPACE - added:
constructor CodeObject(_) - added:
method CodeObject.configuration() - added:
method CodeObject.rspec_cop?()
- added:
class SelectorSet - added:
const ExampleGroups.ALL - added:
const Examples.ALL - added:
const Includes.ALL - added:
const SharedGroups.ALL - added:
constructor SelectorSet(_) - added:
method SelectorSet.+(_) - added:
method SelectorSet.==(_) - added:
method SelectorSet.block_or_block_pass_pattern() - added:
method SelectorSet.block_pass_pattern() - added:
method SelectorSet.block_pattern() - added:
method SelectorSet.include?(_) - added:
method SelectorSet.node_pattern() - added:
method SelectorSet.node_pattern_union() - added:
method SelectorSet.send_or_block_or_block_pass_pattern() - added:
method SelectorSet.send_pattern() - added:
method SelectorSet.to_a() - added:
module ExampleGroups - added:
module Examples - added:
module Expectations - added:
module Helpers - added:
module Hooks - added:
module Includes - added:
module NodePattern - added:
module Runners - added:
module SharedGroups - added:
module Subject - added:
protected property SelectorSet.selectors: reader
- added:
class FOCUSED < SelectorSet.new(%i[fdescribe fcontext ffeature]) - added:
class GROUPS < SelectorSet.new(%i[describe context feature example_group]) - added:
class SKIPPED < SelectorSet.new(%i[xdescribe xcontext xfeature])
- added:
class EXAMPLES < SelectorSet.new(%i[it specify example scenario its]) - added:
class FOCUSED < SelectorSet.new(%i[fit fspecify fexample fscenario focus]) - added:
class PENDING < SelectorSet.new(%i[pending]) - added:
class SKIPPED < SelectorSet.new(%i[xit xspecify xexample xscenario skip])
- added:
class ALL < SelectorSet.new(%i[expect is_expected expect_any_instance_of])
- added:
class ALL < SelectorSet.new(%i[let let!])
- added:
class ALL < SelectorSet.new(%i[prepend_before before append_before around prepend_after after append_after]) - added:
module Scopes
- added:
class ALL < SelectorSet.new(%i[each example context all suite])
- added:
class CONTEXT < SelectorSet.new(%i[include_context]) - added:
class EXAMPLES < SelectorSet.new(%i[it_behaves_like it_should_behave_like include_examples])
- added:
class ALL < SelectorSet.new(%i[to to_not not_to])
- added:
class CONTEXT < SelectorSet.new(%i[shared_context]) - added:
class EXAMPLES < SelectorSet.new(%i[shared_examples shared_examples_for])
- added:
class ALL < SelectorSet.new(%i[subject subject!])
- removed:
module Cop - removed:
module RSpec
- removed:
module RSpec
- removed:
class UnitSpecNaming < Cop - removed:
const UnitSpecNaming.CLASS_SPEC_MSG - removed:
const UnitSpecNaming.DESCRIBE_CLASS_MSG - removed:
const UnitSpecNaming.METHOD_SPEC_MSG - removed:
const UnitSpecNaming.METHOD_STRING_MATCHER - removed:
const UnitSpecNaming.METHOD_STRING_MSG - removed:
method UnitSpecNaming.on_send(_)
- removed:
const Inject.DEFAULT_FILE - removed:
const Version.STRING - removed:
module Inject - removed:
module Version - removed:
static method Inject.defaults!()