diff options
author | Ben Woodcroft <donttrustben@gmail.com> | 2015-12-31 23:24:54 +1000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-03-18 10:23:51 +0000 |
commit | 20a0f80414cc953c2a3836ded012841febd74927 (patch) | |
tree | 98e539a8a5ba7f937c0b5d4a34415400e975eece /gnu/packages | |
parent | 34138e42ba69fa77eb6d9221a7441fa52c4d9259 (diff) | |
download | patches-20a0f80414cc953c2a3836ded012841febd74927.tar patches-20a0f80414cc953c2a3836ded012841febd74927.tar.gz |
gnu: Add ruby-rack-test.
* gnu/packages/ruby.scm (ruby-rack-test): New variable.
Diffstat (limited to 'gnu/packages')
-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 dc2ef251de..31e2e0f9eb 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -3329,6 +3329,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.8.3") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "rack-test" version)) + (sha256 + (base32 + "14ij39zywvr1i9f6jsixfg4zxi2q1m1n1nydvf47f0b6sfc9mv1g")))) + (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 _ + (invoke "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 "https://github.com/rack-test/rack-test") + (license license:expat))) + (define-public ruby-docile (package (name "ruby-docile") |