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

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

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

diff --git a/gnu/packages/ruby-xyz.scm b/gnu/packages/ruby-xyz.scm
index 4f1212a52a..aef36ffb8a 100644
--- a/gnu/packages/ruby-xyz.scm
+++ b/gnu/packages/ruby-xyz.scm
@@ -7548,6 +7548,14 @@ (define-public ruby-crass
                (base32
                 "1gbsb81psgb6xhnwpx4s409jc0mk0gijh039sy5xyi8jpaaadp40"))))
     (build-system ruby-build-system)
+    (arguments
+     (list #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'unpack 'patch-minitest
+                 (lambda _
+                   (substitute* "test/support/common.rb"
+                     (("MiniTest")
+                      "Minitest")))))))
     (synopsis "Pure Ruby CSS parser")
     (description
      "Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.")
-- 
2.49.0