Subject: [bug#78826] [PATCH 51/88] gnu: ruby-bindex: Fix minitest.

From: Nicolas Graves <[email-masked]>
Date: Wed, 18 Jun 2025 16:27:38 +0200

* gnu/packages/ruby-xyz.scm (ruby-bindex)[arguments]{phases}: Add
phase 'patch-minitest.
[native-inputs]: Add ruby-minitest.
---
 gnu/packages/ruby-xyz.scm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gnu/packages/ruby-xyz.scm b/gnu/packages/ruby-xyz.scm
index 3c2f061466..bbe743225a 100644
--- a/gnu/packages/ruby-xyz.scm
+++ b/gnu/packages/ruby-xyz.scm
@@ -2559,6 +2559,11 @@ (define-public ruby-open4
   (arguments
    '(#:phases
      (modify-phases %standard-phases
+       (add-after 'unpack 'patch-minitest
+         (lambda _
+           (substitute* "test/lib/test_case.rb"
+             (("MiniTest::Unit::TestCase")
+              "Minitest::Test"))))
        (add-after 'unpack 'patch
          (lambda _
            (substitute* "rakefile"
@@ -2569,6 +2574,7 @@ (define-public ruby-open4
          (lambda _
            ;; This is used in the rakefile when running the tests
            (setenv "LIB" "open4"))))))
+  (native-inputs (list ruby-minitest))
   (synopsis "Open child processes from Ruby and manage them easily")
   (description
     "@code{Open4} is a Ruby library to run child processes and manage their
-- 
2.49.0