aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2019-01-28 16:00:13 +0000
committerChristopher Baines <mail@cbaines.net>2019-02-14 21:38:01 +0000
commit24412de48d06ab6ae6122082601e95d9f8bd9f5e (patch)
tree78e732bb320bf7dfc9d619d8520081193def87e5 /gnu/packages
parentab654da5438dea1252b0bdf0cdff36d8d695f978 (diff)
downloadguix-24412de48d06ab6ae6122082601e95d9f8bd9f5e.tar
guix-24412de48d06ab6ae6122082601e95d9f8bd9f5e.tar.gz
gnu: Add ruby-rails-dom-testing.
* gnu/packages/rails.scm (ruby-rails-dom-testing): New variable.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/rails.scm28
1 files changed, 28 insertions, 0 deletions
diff --git a/gnu/packages/rails.scm b/gnu/packages/rails.scm
index c0c6e5ae2f..7e0e3ddf73 100644
--- a/gnu/packages/rails.scm
+++ b/gnu/packages/rails.scm
@@ -20,6 +20,7 @@
(define-module (gnu packages rails)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix download)
+ #:use-module (guix git-download)
#:use-module (guix packages)
#:use-module (gnu packages ruby)
#:use-module (guix build-system ruby))
@@ -169,3 +170,30 @@ you need similar functionality in non Rails apps consider using Loofah
directly.")
(home-page "https://github.com/rails/rails-html-sanitizer")
(license license:expat)))
+
+(define-public ruby-rails-dom-testing
+ (package
+ (name "ruby-rails-dom-testing")
+ (version "2.0.2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/rails/rails-dom-testing.git")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0zrg6x1w3wjgklbhcphjmggl11jx5s8cl21qjqij7wknm412i5wl"))))
+ (build-system ruby-build-system)
+ (native-inputs
+ `(("bundler" ,bundler)))
+ (propagated-inputs
+ `(("ruby-activesupport" ,ruby-activesupport)
+ ("ruby-nokogiri" ,ruby-nokogiri)))
+ (synopsis "Compare HTML DOMs and assert certain elements exists")
+ (description
+ "This gem can compare HTML and assert certain elements exists. This is
+useful when writing tests.")
+ (home-page "https://github.com/rails/rails-dom-testing")
+ (license license:expat)))