[DRE-commits] [ruby-handlebars-assets] 02/02: add smoke test for assets
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Thu Jan 14 12:04:28 UTC 2016
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository ruby-handlebars-assets.
commit 54a27acc77c355d43d3d271bd4ec52d0832c7f3c
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Thu Jan 14 17:19:13 2016 +0530
add smoke test for assets
---
debian/changelog | 1 +
debian/tests/control | 2 ++
debian/tests/smoke-test | 21 +++++++++++++++++++++
3 files changed, 24 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index fc4a5fc..7a73c74 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ ruby-handlebars-assets (2:0.21.0-4) unstable; urgency=medium
* Realx tilt dependency in gemspec
* Check gemspec dependencies on build
+ * Add smoke test for assets
-- Pirate Praveen <praveen at debian.org> Thu, 14 Jan 2016 12:09:51 +0530
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..d89edb1
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: smoke-test
+Depends: @, rails, ruby-coffee-script, ruby-jbuilder, ruby-sqlite3
diff --git a/debian/tests/smoke-test b/debian/tests/smoke-test
new file mode 100755
index 0000000..5e62ad8
--- /dev/null
+++ b/debian/tests/smoke-test
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+exec 2>&1
+set -ex
+
+cd $ADTTMP
+
+rails new foo
+cd foo
+
+cat >> app/assets/javascripts/application.js <<EOF
+# =require handlebars
+# =require handlebars.runtime
+EOF
+
+cat >> Gemfile <<EOF
+gem 'handlebars_assets'
+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-handlebars-assets.git
More information about the Pkg-ruby-extras-commits
mailing list