lib/rubocop/cop/rspec/expect_actual.rb in rubocop-rspec-2.31.0 vs lib/rubocop/cop/rspec/expect_actual.rb in rubocop-rspec-3.0.0.pre

- old
+ new

@@ -95,10 +95,10 @@ SIMPLE_LITERALS.include?(node.type) end def complex_literal?(node) COMPLEX_LITERALS.include?(node.type) && - node.each_child_node.all?(&method(:literal?)) + node.each_child_node.all? { |child_node| literal?(child_node) } end end end end end