lib/rubocop/cop/rspec/leaky_constant_declaration.rb in rubocop-rspec-2.31.0 vs lib/rubocop/cop/rspec/leaky_constant_declaration.rb in rubocop-rspec-3.0.0.pre
- old
+ new
@@ -117,10 +117,10 @@
end
private
def inside_describe_block?(node)
- node.each_ancestor(:block).any?(&method(:spec_group?))
+ node.each_ancestor(:block).any? { |ancestor| spec_group?(ancestor) }
end
end
end
end
end