Minor renames for clarity
This commit is contained in:
parent
e3e746623b
commit
4a37cd0dc0
2 changed files with 3 additions and 3 deletions
|
@ -36,7 +36,7 @@ module RuboCop
|
|||
PATTERN
|
||||
|
||||
def on_module(node)
|
||||
add_offense(node) if node.defined_module_name == 'ClassMethods' && extends_activesupport_concern?(node)
|
||||
add_offense(node) if node.defined_module_name == 'ClassMethods' && module_extends_activesupport_concern?(node)
|
||||
end
|
||||
|
||||
def autocorrect(node)
|
||||
|
@ -47,7 +47,7 @@ module RuboCop
|
|||
|
||||
private
|
||||
|
||||
def extends_activesupport_concern?(node)
|
||||
def module_extends_activesupport_concern?(node)
|
||||
container_module = container_module_of(node)
|
||||
return false unless container_module
|
||||
|
||||
|
|
|
@ -93,6 +93,6 @@ describe RuboCop::Cop::PreferClassMethodsOverModule do
|
|||
end
|
||||
end
|
||||
RUBY
|
||||
expect(autocorrected).to eql(expected_source)
|
||||
expect(autocorrected).to eq(expected_source)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue