lib/rubocop/cop/minitest/unreachable_assertion.rb in rubocop-minitest-0.21.0 vs lib/rubocop/cop/minitest/unreachable_assertion.rb in rubocop-minitest-0.21.1

- old
+ new

@@ -23,10 +23,10 @@ class UnreachableAssertion < Base include MinitestExplorationHelpers MSG = 'Unreachable `%<assertion_method>s` detected.' - def on_block(node) + def on_block(node) # rubocop:disable InternalAffairs/NumblockHandler return unless node.method?(:assert_raises) && (body = node.body) last_node = body.begin_type? ? body.children.last : body return unless last_node.send_type? return if !assertion_method?(last_node) || !body.begin_type?