Subject: [bug#62196] [PATCH 047/223] gnu: ruby-cucumber-html-formatter: Honor #:tests? argument.

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

* gnu/packages/ruby.scm (ruby-cucumber-html-formatter)
[arguments]: Honor #:tests? 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 b0e23a4116..403c3d0520 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -8220,8 +8220,9 @@ (define-public ruby-cucumber-html-formatter
                             (substitute* ".gemspec"
                               (("~> 18.0") "~> 21.0")))) ;cucumber-messages
                         (replace 'check
-                          (lambda _
-                            (invoke "rspec"))))))
+                          (lambda* (#:key tests? #:allow-other-keys)
+                            (when tests?
+                              (invoke "rspec")))))))
     (native-inputs (list ruby-cucumber-compatibility-kit ruby-rspec))
     (propagated-inputs (list ruby-cucumber-messages))
     (synopsis "HTML formatter for Cucumber")
-- 
2.39.1