Commit 4a37cd0d authored by jacopo's avatar jacopo

Minor renames for clarity

parent e3e74662
Pipeline #28965234 passed with stages
in 81 minutes and 12 seconds
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment