[DRE-commits] [ruby-jquery-rails] 03/09: add smoke test

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Thu Nov 3 18:54:34 UTC 2016


This is an automated email from the git hooks/post-receive script.

praveen pushed a commit to branch master
in repository ruby-jquery-rails.

commit ff5d0affefa138197257b29f607d943817f8d33b
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Thu Nov 3 23:13:15 2016 +0530

    add smoke test
---
 debian/tests/control    |  3 +++
 debian/tests/smoke-test | 22 ++++++++++++++++++++++
 2 files changed, 25 insertions(+)

diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..4c59a72
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: smoke-test
+Depends: @
+Restrictions: needs-recommends
diff --git a/debian/tests/smoke-test b/debian/tests/smoke-test
new file mode 100755
index 0000000..72e568d
--- /dev/null
+++ b/debian/tests/smoke-test
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+exec 2>&1
+set -ex
+
+
+cd $ADTTMP
+rails new foo
+cd foo
+
+cat >> app/assets/javascripts/application.js <<EOF
+# =require jquery
+# =require jquery2
+# =require jquery3
+EOF
+
+cat >> Gemfile <<EOF
+gem "jquery-rails"
+EOF
+
+bundle install --local
+bundle exec rake assets:precompile

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-jquery-rails.git



More information about the Pkg-ruby-extras-commits mailing list