lib/rubocop/cop/rspec/unspecified_exception.rb in rubocop-rspec-3.2.0 vs lib/rubocop/cop/rspec/unspecified_exception.rb in rubocop-rspec-3.3.0
- old
+ new
@@ -62,10 +62,9 @@
end
def find_expect_to(node)
node.each_ancestor.find do |ancestor|
break if ancestor.block_type?
- next unless ancestor.send_type?
expect_to?(ancestor)
end
end
end