lib/rubocop/cop/rspec/iterated_expectation.rb in rubocop-rspec-1.15.0 vs lib/rubocop/cop/rspec/iterated_expectation.rb in rubocop-rspec-1.15.1

- old
+ new

@@ -42,10 +42,10 @@ def single_expectation?(body, arg) expectation?(body, arg) end def only_expectations?(body, arg) - body.children.all? { |child| expectation?(child, arg) } + body.each_child_node.all? { |child| expectation?(child, arg) } end end end end end