guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

192/229: gnu: ruby-shoulda-matchers: Honor #:tests?.


From: guix-commits
Subject: 192/229: gnu: ruby-shoulda-matchers: Honor #:tests?.
Date: Tue, 28 Mar 2023 22:29:22 -0400 (EDT)

apteryx pushed a commit to branch master
in repository guix.

commit 7800103c8189cde3eebdc1c083fb104ced63ba59
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Fri Mar 17 22:06:43 2023 -0400

    gnu: ruby-shoulda-matchers: Honor #:tests?.
    
    * gnu/packages/ruby.scm (ruby-shoulda-matchers)
    [arguments]: Honor #:tests? in check phase.
---
 gnu/packages/ruby.scm | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 0c7dc39d50..faf3dafdda 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -10121,10 +10121,11 @@ names.")
      `(#:phases
        (modify-phases %standard-phases
          (replace 'check
-           (lambda _
-             ;; Do not run tests to avoid circular dependence with rails.  
Instead
-             ;; just import the library to test.
-             (invoke "ruby" "-Ilib" "-r" "shoulda-matchers"))))))
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               ;; Do not run tests to avoid circular dependence with rails.  
Instead
+               ;; just import the library to test.
+               (invoke "ruby" "-Ilib" "-r" "shoulda-matchers")))))))
     (propagated-inputs
      (list ruby-activesupport))
     (synopsis "Collection of testing matchers extracted from Shoulda")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]