gnu: ruby-shoulda-matchers: Honor #:tests?.

* gnu/packages/ruby.scm (ruby-shoulda-matchers)
[arguments]: Honor #:tests? in check phase.
This commit is contained in:
Maxim Cournoyer 2023-03-17 22:06:43 -04:00
parent 253f51dcbb
commit 7800103c81
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -10121,10 +10121,11 @@ (define-public ruby-shoulda-matchers
`(#: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")