lib/rubocop/cop/rspec/unspecified_exception.rb in rubocop-rspec-1.33.0 vs lib/rubocop/cop/rspec/unspecified_exception.rb in rubocop-rspec-1.34.0

- old
+ new

@@ -43,13 +43,10 @@ PATTERN def on_send(node) return unless empty_exception_matcher?(node) - add_offense( - node.children.last, - location: :expression - ) + add_offense(node.children.last) end def empty_exception_matcher?(node) empty_raise_error_or_exception(node) && !block_with_args?(node.parent) end