me
/
guix
Archived
1
0
Fork 0

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>
master
Maxime Devos 2022-03-04 13:01:06 +00:00 committed by Maxim Cournoyer
parent 99a546df1f
commit 0679c8fe97
No known key found for this signature in database
GPG Key ID: 1260E46482E63562
1 changed files with 4 additions and 9 deletions

View File

@ -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