Commit 4a37cd0d authored by Jacopo's avatar Jacopo

Minor renames for clarity

parent e3e74662
...@@ -36,7 +36,7 @@ module RuboCop ...@@ -36,7 +36,7 @@ module RuboCop
PATTERN PATTERN
def on_module(node) 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 end
def autocorrect(node) def autocorrect(node)
...@@ -47,7 +47,7 @@ module RuboCop ...@@ -47,7 +47,7 @@ module RuboCop
private private
def extends_activesupport_concern?(node) def module_extends_activesupport_concern?(node)
container_module = container_module_of(node) container_module = container_module_of(node)
return false unless container_module return false unless container_module
......
...@@ -93,6 +93,6 @@ describe RuboCop::Cop::PreferClassMethodsOverModule do ...@@ -93,6 +93,6 @@ describe RuboCop::Cop::PreferClassMethodsOverModule do
end end
end end
RUBY RUBY
expect(autocorrected).to eql(expected_source) expect(autocorrected).to eq(expected_source)
end end
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