lib/rubocop/cop/minitest/unspecified_exception.rb in rubocop-minitest-0.11.1 vs lib/rubocop/cop/minitest/unspecified_exception.rb in rubocop-minitest-0.12.0

- old
+ new

@@ -12,10 +12,10 @@ # # # good # assert_raises(FooException) { raise FooException } # assert_raises(FooException, 'This should have raised') { raise FooException } # - class UnspecifiedException < Cop + class UnspecifiedException < Base MSG = 'Specify the exception being captured.' def on_block(block_node) node = block_node.send_node return unless node.method?(:assert_raises)