lib/rubocop/cop/rspec/void_expect.rb in rubocop-rspec-1.27.0 vs lib/rubocop/cop/rspec/void_expect.rb in rubocop-rspec-1.28.0
- old
+ new
@@ -42,10 +42,10 @@
def void?(expect)
parent = expect.parent
return true unless parent
return true if parent.begin_type?
- return true if parent.block_type? && parent.children[2] == expect
+ return true if parent.block_type? && parent.body == expect
end
end
end
end
end