Subject: [PATCH 081/223] gnu: ruby-rack-test: Honor #:tests? argument.

From: Maxim Cournoyer <[email-masked]>
Date: Mon, 20 Mar 2023 13:14:13 -0400

* gnu/packages/ruby.scm (ruby-rack-test) [arguments]: Honor #:tests? argument
in check phase override.
---
 gnu/packages/ruby.scm | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 0ad9f820d1..41a2f01ca3 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -7222,8 +7222,9 @@ (define-public ruby-rack-test
      `(#:phases
        (modify-phases %standard-phases
          (replace 'check
-           (lambda _
-             (invoke "ruby" "-Ilib" "-r" "rack/test"))))))
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               (invoke "ruby" "-Ilib" "-r" "rack/test")))))))
     (propagated-inputs
      (list ruby-rack))
     (synopsis "Testing API for Rack applications")
-- 
2.39.1