[DRE-commits] [nanoc] 05/06: Add encoding patch to fix test involving non ASCII chars in clean environment
Cédric Boutillier
boutil at moszumanska.debian.org
Wed Mar 2 21:16:50 UTC 2016
This is an automated email from the git hooks/post-receive script.
boutil pushed a commit to branch master
in repository nanoc.
commit 2dbb30a7da9a31fbf76cce55671c3cf3d78e7e73
Author: Cédric Boutillier <boutil at debian.org>
Date: Wed Mar 2 22:12:10 2016 +0100
Add encoding patch to fix test involving non ASCII chars in clean environment
---
debian/changelog | 2 ++
debian/patches/encoding.patch | 13 +++++++++++++
debian/patches/series | 1 +
3 files changed, 16 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 6bc5231..88e6c27 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,8 @@ nanoc (4.1.4-1) unstable; urgency=medium
* Use the Rake method to run the tests
* Add patch to filter out nil Gem::Specifications with Ruby 2.3
(fixes tests for ruby2.3)
+ * Add encoding patch to fix test involving non ASCII chars in clean
+ environment
-- Cédric Boutillier <boutil at debian.org> Mon, 29 Feb 2016 13:03:12 +0100
diff --git a/debian/patches/encoding.patch b/debian/patches/encoding.patch
new file mode 100644
index 0000000..9a76c34
--- /dev/null
+++ b/debian/patches/encoding.patch
@@ -0,0 +1,13 @@
+Description: force encoding to UTF-8 to fix test in clean environment
+Author: Cédric Boutillier <boutil at debian.org>
+Last-Update: 2016-03-02
+Forwarded: not-needed
+
+--- a/test/cli/commands/test_create_site.rb
++++ b/test/cli/commands/test_create_site.rb
+@@ -1,3 +1,5 @@
++Encoding.default_external="UTF-8" if defined? Encoding
++
+ class Nanoc::CLI::Commands::CreateSiteTest < Nanoc::TestCase
+ def test_create_site_with_existing_name
+ Nanoc::CLI.run %w( create_site foo )
diff --git a/debian/patches/series b/debian/patches/series
index 101e581..ec3e022 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -6,3 +6,4 @@ no_privacy_breach.patch
no_vcr.patch
set-load_paths-for-sass-tests.patch
filter_out_nil_gemspec.patch
+encoding.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/nanoc.git
More information about the Pkg-ruby-extras-commits
mailing list