diff options
author | Maxime Devos <maximedevos@telenet.be> | 2022-03-04 13:01:06 +0000 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2022-03-11 23:34:47 -0500 |
commit | 0679c8fe976f3281e840f1332db60628351c9793 (patch) | |
tree | 821bcbd4f8b8e88c79f76105234a5f720feaae95 /gnu/packages/ruby.scm | |
parent | 99a546df1fc10a16b565a27704807289ce11b3cd (diff) | |
download | guix-0679c8fe976f3281e840f1332db60628351c9793.tar guix-0679c8fe976f3281e840f1332db60628351c9793.tar.gz |
gnu: ruby-yard-with-tests: Run tests conditionally.
* gnu/packages/ruby.scm (ruby-yard-with-tests)[arguments]:
Remove #:tests? instead of unconditionally setting it to #t.
[phases]: Delete trailing #t.
[native-inputs]: Use new style.
Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Diffstat (limited to 'gnu/packages/ruby.scm')
-rw-r--r-- | gnu/packages/ruby.scm | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 21b982d4a9..c3c357d216 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -8279,8 +8279,8 @@ definitions.") (inherit ruby-yard) (name "ruby-yard-with-tests") (arguments - (substitute-keyword-arguments (package-arguments ruby-yard) - ((#:tests? _ #t) #t) + (substitute-keyword-arguments + (strip-keyword-arguments '(#:tests?) (package-arguments ruby-yard)) ((#:test-target _ "default") "default") ((#:phases phases '%standard-phases) `(modify-phases ,phases @@ -8293,13 +8293,8 @@ definitions.") (delete-file "Gemfile") ;; $HOME needs to be set to somewhere writeable for tests to ;; run. - (setenv "HOME" "/tmp")) - #t)))))) - (native-inputs - `(("ruby-rspec" ,ruby-rspec) - ("ruby-rack" ,ruby-rack) - ("ruby-redcloth" ,ruby-redcloth) - ("ruby-asciidoc" ,ruby-asciidoctor))))) + (setenv "HOME" "/tmp")))))))) + (native-inputs (list ruby-rspec ruby-rack ruby-redcloth ruby-asciidoctor)))) (define-public ruby-spectroscope (package |