lib/rubocop/cop/rspec/unspecified_exception.rb in rubocop-rspec-2.15.0 vs lib/rubocop/cop/rspec/unspecified_exception.rb in rubocop-rspec-2.16.0

- old
+ new

@@ -48,9 +48,11 @@ return unless empty_exception_matcher?(node) add_offense(node.children.last) end + private + def empty_exception_matcher?(node) empty_raise_error_or_exception(node) && !block_with_args?(node.parent) end def block_with_args?(node)