Skip to content
Snippets Groups Projects
Commit 4a37cd0d authored by Jacopo's avatar Jacopo
Browse files

Minor renames for clarity

parent e3e74662
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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)
Loading
Loading
@@ -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
 
Loading
Loading
Loading
Loading
@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment