[DRE-commits] [ruby-handlebars-assets] 03/04: Fix path during tests
Mathieu Parent
sathieu at moszumanska.debian.org
Fri Oct 16 04:27:12 UTC 2015
This is an automated email from the git hooks/post-receive script.
sathieu pushed a commit to branch master
in repository ruby-handlebars-assets.
commit 23e6c7735a5421b5142bf47cc76d97ba72623931
Author: Mathieu Parent <math.parent at gmail.com>
Date: Tue Oct 13 04:58:28 2015 +0200
Fix path during tests
---
debian/patches/0002-Fix-slimbars-test.patch | 37 +++++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 38 insertions(+)
diff --git a/debian/patches/0002-Fix-slimbars-test.patch b/debian/patches/0002-Fix-slimbars-test.patch
new file mode 100644
index 0000000..78c433f
--- /dev/null
+++ b/debian/patches/0002-Fix-slimbars-test.patch
@@ -0,0 +1,37 @@
+From: Mathieu Parent <math.parent at gmail.com>
+Date: Tue, 13 Oct 2015 05:26:45 +0200
+Subject: Fix slimbars test
+
+---
+ test/handlebars_assets/slimbars_test.rb | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/test/handlebars_assets/slimbars_test.rb b/test/handlebars_assets/slimbars_test.rb
+index f162d81..2002f26 100644
+--- a/test/handlebars_assets/slimbars_test.rb
++++ b/test/handlebars_assets/slimbars_test.rb
+@@ -5,6 +5,11 @@ module HandlebarsAssets
+ include SprocketsScope
+ include CompilerSupport
+
++ def teardown
++ HandlebarsAssets::Config.reset!
++ HandlebarsAssets::Handlebars.reset!
++ end
++
+ def compile_slim(source)
+ Slim::Template.new(HandlebarsAssets::Config.slim_options) { source }.render
+ end
+diff --git a/test/test_helper.rb b/test/test_helper.rb
+index c829413..fc18e3c 100644
+--- a/test/test_helper.rb
++++ b/test/test_helper.rb
+@@ -57,7 +57,7 @@ module HandlebarsAssets
+ def reset!
+ @chomp_underscore_for_partials = nil
+ @compiler = nil
+- @compiler_path = nil
++ @compiler_path = 'vendor/assets/javascripts'
+ @haml_options = nil
+ @known_helpers = nil
+ @known_helpers_only = nil
diff --git a/debian/patches/series b/debian/patches/series
index d77d941..543a72c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
engine-root.patch
+0002-Fix-slimbars-test.patch
--
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