[DRE-commits] [ruby-handlebars-assets] 02/03: Reset path before each test to fix the first one

Mathieu Parent sathieu at moszumanska.debian.org
Tue Oct 20 05:03:46 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 845cdae6a7ce23d465fd96abe81a67812400d834
Author: Mathieu Parent <math.parent at gmail.com>
Date:   Tue Oct 20 06:45:54 2015 +0200

    Reset path before each test to fix the first one
---
 ...ath-before-each-test-to-fix-the-first-one.patch | 63 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 64 insertions(+)

diff --git a/debian/patches/0003-Reset-path-before-each-test-to-fix-the-first-one.patch b/debian/patches/0003-Reset-path-before-each-test-to-fix-the-first-one.patch
new file mode 100644
index 0000000..9b0e310
--- /dev/null
+++ b/debian/patches/0003-Reset-path-before-each-test-to-fix-the-first-one.patch
@@ -0,0 +1,63 @@
+From: Mathieu Parent <math.parent at gmail.com>
+Date: Tue, 20 Oct 2015 06:44:17 +0200
+Subject: Reset path before each test to fix the first one
+
+---
+ test/handlebars_assets/compiling_test.rb       | 2 +-
+ test/handlebars_assets/hamlbars_test.rb        | 2 +-
+ test/handlebars_assets/slimbars_test.rb        | 2 +-
+ test/handlebars_assets/tilt_handlebars_test.rb | 2 +-
+ 4 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/test/handlebars_assets/compiling_test.rb b/test/handlebars_assets/compiling_test.rb
+index e3dc992..850cc50 100644
+--- a/test/handlebars_assets/compiling_test.rb
++++ b/test/handlebars_assets/compiling_test.rb
+@@ -3,7 +3,7 @@ require 'test_helper'
+ module HandlebarsAssets
+   class CompilingTest < ::MiniTest::Test
+ 
+-    def teardown
++    def setup
+       HandlebarsAssets::Config.reset!
+       HandlebarsAssets::Handlebars.reset!
+     end
+diff --git a/test/handlebars_assets/hamlbars_test.rb b/test/handlebars_assets/hamlbars_test.rb
+index 7afce25..74a9560 100644
+--- a/test/handlebars_assets/hamlbars_test.rb
++++ b/test/handlebars_assets/hamlbars_test.rb
+@@ -9,7 +9,7 @@ module HandlebarsAssets
+       (Haml::Engine.new(source, HandlebarsAssets::Config.haml_options).render).chomp
+     end
+ 
+-    def teardown
++    def setup
+       HandlebarsAssets::Config.reset!
+       HandlebarsAssets::Handlebars.reset!
+     end
+diff --git a/test/handlebars_assets/slimbars_test.rb b/test/handlebars_assets/slimbars_test.rb
+index 2002f26..110a977 100644
+--- a/test/handlebars_assets/slimbars_test.rb
++++ b/test/handlebars_assets/slimbars_test.rb
+@@ -5,7 +5,7 @@ module HandlebarsAssets
+     include SprocketsScope
+     include CompilerSupport
+ 
+-    def teardown
++    def setup
+       HandlebarsAssets::Config.reset!
+       HandlebarsAssets::Handlebars.reset!
+     end
+diff --git a/test/handlebars_assets/tilt_handlebars_test.rb b/test/handlebars_assets/tilt_handlebars_test.rb
+index 57b4983..67852d0 100644
+--- a/test/handlebars_assets/tilt_handlebars_test.rb
++++ b/test/handlebars_assets/tilt_handlebars_test.rb
+@@ -5,7 +5,7 @@ module HandlebarsAssets
+     include CompilerSupport
+     include SprocketsScope
+ 
+-    def teardown
++    def setup
+       HandlebarsAssets::Config.reset!
+       HandlebarsAssets::Handlebars.reset!
+     end
diff --git a/debian/patches/series b/debian/patches/series
index 543a72c..93cddbd 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 engine-root.patch
 0002-Fix-slimbars-test.patch
+0003-Reset-path-before-each-test-to-fix-the-first-one.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