apteryx pushed a commit to branch master
in repository guix.
commit 2a34881356ae60ea2426a4008bbae8a24f9a3468
Author: Maxim Cournoyer <[email protected]>
AuthorDate: Fri Mar 17 22:07:34 2023 -0400
gnu: ruby-shoulda: Honor #:tests?.
* gnu/packages/ruby.scm (ruby-shoulda)
[arguments]: Honor #:tests? in check phase.
---
gnu/packages/ruby.scm | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 24b5546ecf..f02ed79588 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -10152,9 +10152,11 @@ more complex, and error-prone.")
`(#:phases
(modify-phases %standard-phases
(replace 'check
- ;; Don't run tests to avoid circular dependence with rails. Instead
- ;; just import the library to test.
- (lambda _ (invoke "ruby" "-Ilib" "-r" "shoulda")))
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ ;; Don't run tests to avoid circular dependence with rails.
+ ;; Instead just import the library to test.
+ (invoke "ruby" "-Ilib" "-r" "shoulda"))))
(add-after 'extract-gemspec 'relax-requirements
(lambda _
(substitute* "shoulda.gemspec"