gnu: ruby-minitest-pretty-diff: Honor the #:tests? flag.

* gnu/packages/ruby.scm (ruby-minitest-pretty-diff)[arguments]: Adjust
custom 'check phase to honor the #:tests? flag.
This commit is contained in:
Efraim Flashner 2023-03-16 21:51:44 +02:00
parent 40d8a8c90f
commit ef06671d8f
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -4490,8 +4490,9 @@ (define-public ruby-minitest-pretty-diff
`(#:phases `(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(replace 'check (replace 'check
(lambda _ (lambda* (#:key tests? #:allow-other-keys)
(invoke "sh" "script/test")))))) (when tests?
(invoke "sh" "script/test")))))))
(native-inputs (native-inputs
(list bundler ruby-turn)) (list bundler ruby-turn))
(synopsis "Pretty-print hashes and arrays in MiniTest") (synopsis "Pretty-print hashes and arrays in MiniTest")