Subject: [PATCH 43/88] gnu: ruby-event-emitter: Fix minitest.

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

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

diff --git a/gnu/packages/ruby-xyz.scm b/gnu/packages/ruby-xyz.scm
index d343261ec4..e6f662bd67 100644
--- a/gnu/packages/ruby-xyz.scm
+++ b/gnu/packages/ruby-xyz.scm
@@ -10008,6 +10008,11 @@ (define-public ruby-event-emitter
     (build-system ruby-build-system)
     (arguments
      (list #:phases #~(modify-phases %standard-phases
+                        (add-after 'unpack 'patch-minitest
+                          (lambda _
+                            (substitute* (find-files "test" "\\.rb$")
+                              (("MiniTest")
+                               "Minitest"))))
                         (add-after 'extract-gemspec 'relax-requirements
                           (lambda _
                             (substitute* "event_emitter.gemspec"
-- 
2.49.0