lib/rubocop/cop/rspec/any_instance.rb in rubocop-rspec-1.4.1 vs lib/rubocop/cop/rspec/any_instance.rb in rubocop-rspec-1.5.0
- old
+ new
@@ -31,14 +31,17 @@
def on_send(node)
_receiver, method_name, *_args = *node
return unless ANY_INSTANCE_METHODS.include?(method_name)
- add_offense(node, :expression,
- format(MESSAGE % { method: method_name },
- node.loc.expression.source
- )
- )
+ add_offense(
+ node,
+ :expression,
+ format(
+ MESSAGE % { method: method_name },
+ node.loc.expression.source
+ )
+ )
end
end
end
end
end