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
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "sh" "script/test"))))))
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "sh" "script/test")))))))
(native-inputs
(list bundler ruby-turn))
(synopsis "Pretty-print hashes and arrays in MiniTest")