>From 81e6d9cb5470f85131e302759c3698d9c6295dd8 Mon Sep 17 00:00:00 2001 From: Ben Woodcroft Date: Tue, 29 Dec 2015 14:13:42 +1000 Subject: [PATCH 02/12] gnu: Add ruby-rubytest. * gnu/packages/ruby.scm (ruby-rubytest): New variable. --- gnu/packages/ruby.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 0037407..cb96811 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -2920,3 +2920,34 @@ provides information about the current output device.") (home-page "http://rubyworks.github.io/ansi") (license license:bsd-2))) +(define-public ruby-rubytest + (package + (name "ruby-rubytest") + (version "0.8.1") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "rubytest" version)) + (sha256 + (base32 + "19jydsdnkl81i9dhdcr4dc34j0ilm68ff2ngnka1hi38xiw4p5qz")))) + (build-system ruby-build-system) + (arguments + ;; disable testing to break the cycle rubytest, qed, brass, rubytest, as + ;; well as the cycle rubytest, qed, ansi, rubytest. Instead simply test + ;; that the library can be require'd. + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + (zero? (system* "ruby" "-Ilib" "-r" "rubytest"))))))) + (propagated-inputs + `(("ruby-ansi" ,ruby-ansi))) + (synopsis "Universal test harness for Ruby") + (description + "Rubytest is a testing meta-framework for Ruby. It can handle any +compliant test framework, and can run tests from multiple frameworks in a +single pass.") + (home-page + "http://rubyworks.github.io/rubytest") + (license license:bsd-2))) -- 2.6.3