lib/rubocop/cop/rspec/leaky_constant_declaration.rb in rubocop-rspec-1.42.0 vs lib/rubocop/cop/rspec/leaky_constant_declaration.rb in rubocop-rspec-1.43.0
- old
+ new
@@ -91,10 +91,10 @@
# end
# end
# stub_const('SomeModule::SomeClass', foo_class)
# end
# end
- class LeakyConstantDeclaration < Cop
+ class LeakyConstantDeclaration < Base
MSG_CONST = 'Stub constant instead of declaring explicitly.'
MSG_CLASS = 'Stub class constant instead of declaring explicitly.'
MSG_MODULE = 'Stub module constant instead of declaring explicitly.'
def on_casgn(node)