Class: RuboCop::Cop::RSpec::Base Abstract
- Inherits:
-
Base
- Object
- Base
- RuboCop::Cop::RSpec::Base
- Extended by:
- RSpec::Language::NodePattern
- Includes:
- RSpec::Language
- Defined in:
- lib/rubocop/cop/rspec/base.rb
Overview
parent class to RSpec cops
Direct Known Subclasses
AlignLeftLetBrace, AlignRightLetBrace, AnyInstance, AroundBlock, Be, BeEq, BeEql, BeNil, BeforeAfterAll, Capybara::CurrentPathExpectation, Capybara::FeatureMethods, Capybara::SpecificMatcher, Capybara::VisibilityMatcher, ChangeByZero, ContextMethod, ContextWording, DescribeClass, DescribeMethod, DescribeSymbol, DescribedClass, DescribedClassModuleWrapping, Dialect, EmptyExampleGroup, EmptyHook, EmptyLineAfterExample, EmptyLineAfterExampleGroup, EmptyLineAfterFinalLet, EmptyLineAfterHook, EmptyLineAfterSubject, ExampleLength, ExampleWithoutDescription, ExampleWording, ExcessiveDocstringSpacing, ExpectActual, ExpectChange, ExpectInHook, ExpectOutput, FactoryBot::AttributeDefinedStatically, FactoryBot::CreateList, FactoryBot::FactoryClassName, FactoryBot::SyntaxMethods, FilePath, Focus, HookArgument, HooksBeforeExamples, IdenticalEqualityAssertion, ImplicitBlockExpectation, ImplicitExpect, ImplicitSubject, InstanceSpy, InstanceVariable, ItBehavesLike, IteratedExpectation, LeadingSubject, LeakyConstantDeclaration, LetBeforeExamples, LetSetup, MessageChain, MessageExpectation, MessageSpies, MissingExampleGroupArgument, MultipleDescribes, MultipleExpectations, MultipleMemoizedHelpers, MultipleSubjects, NamedSubject, NestedGroups, NotToNot, OverwritingSetup, Pending, PredicateMatcher, Rails::AvoidSetupHook, Rails::HaveHttpStatus, Rails::HttpStatus, ReceiveCounts, ReceiveNever, RepeatedDescription, RepeatedExample, RepeatedExampleGroupBody, RepeatedExampleGroupDescription, RepeatedIncludeExample, ReturnFromStub, ScatteredLet, ScatteredSetup, SharedContext, SharedExamples, SingleArgumentMessageChain, StubbedMock, SubjectDeclaration, SubjectStub, UnspecifiedException, VariableDefinition, VariableName, VerifiedDoubleReference, VerifiedDoubles, VoidExpect, Yield
Class Method Summary collapse
-
.inherited(subclass) ⇒ Object
Invoke the original inherited hook so our cops are recognized.
Instance Method Summary collapse
-
#on_new_investigation ⇒ Object
Set the config for dynamic DSL configuration-aware helpers that have no other means of accessing the configuration.
Methods included from RSpec::Language::NodePattern
Methods included from RSpec::Language
#example?, #example_group?, #example_group_with_body?, #hook?, #include?, #let?, #rspec?, #shared_group?, #spec_group?, #subject?
Class Method Details
Instance Method Details
#on_new_investigation ⇒ Object
Set the config for dynamic DSL configuration-aware helpers that have no other means of accessing the configuration.
20 21 22 23 |
# File 'lib/rubocop/cop/rspec/base.rb', line 20 def on_new_investigation super RuboCop::RSpec::Language.config = config['RSpec']['Language'] end |