diff options
author | Ben Woodcroft <donttrustben@gmail.com> | 2015-12-31 23:24:54 +1000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-01-27 13:41:18 +0000 |
commit | 91f48b04f9e62ed13f34b7931f08574c379ba16a (patch) | |
tree | 9db7130c9705f58a076748c0b9942657ad668803 | |
parent | 24bee8d9dc95fe0c13b09f01a8ed72b46811f7e2 (diff) | |
download | guix-91f48b04f9e62ed13f34b7931f08574c379ba16a.tar guix-91f48b04f9e62ed13f34b7931f08574c379ba16a.tar.gz |
gnu: Add ruby-rack-test.
* gnu/packages/ruby.scm (ruby-rack-test): New variable.
-rw-r--r-- | gnu/packages/ruby.scm | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 3daa8eb8db..8d86fcbd4c 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -3143,6 +3143,37 @@ into a single method call.") (home-page "https://rack.github.io/") (license license:expat))) +(define-public ruby-rack-test + (package + (name "ruby-rack-test") + (version "0.6.3") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "rack-test" version)) + (sha256 + (base32 + "0h6x5jq24makgv2fq5qqgjlrk74dxfy62jif9blk43llw8ib2q7z")))) + (build-system ruby-build-system) + (arguments + ;; Disable tests because of circular dependencies: requires sinatra, + ;; which requires rack-protection, which requires rack-test. Instead + ;; simply require the library. + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + (zero? (system* "ruby" "-Ilib" "-r" "rack/test"))))))) + (propagated-inputs + `(("ruby-rack" ,ruby-rack))) + (synopsis "Testing API for Rack applications") + (description + "Rack::Test is a small, simple testing API for Rack applications. It can +be used on its own or as a reusable starting point for Web frameworks and +testing libraries to build on.") + (home-page "http://github.com/brynary/rack-test") + (license license:expat))) + (define-public ruby-docile (package (name "ruby-docile") |