lib/rubocop/cop/rspec/multiple_expectations.rb in rubocop-rspec-1.27.0 vs lib/rubocop/cop/rspec/multiple_expectations.rb in rubocop-rspec-1.28.0
- old
+ new
@@ -75,10 +75,10 @@
end
private
def example_with_aggregated_failures?(node)
- example = node.children.first
+ example = node.send_node
(aggregated_failures_by_default? ||
with_aggregated_failures?(example)) &&
!disabled_aggregated_failures?(example)
end