[DRE-commits] [nanoc] 14/21: fix encoding issues in tests

Cédric Boutillier boutil at moszumanska.debian.org
Thu Jan 5 14:04:56 UTC 2017


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

boutil pushed a commit to branch master
in repository nanoc.

commit d93d5d129eab5c15fb60eccce23b8bd134a9dc9b
Author: Cédric Boutillier <boutil at debian.org>
Date:   Thu Jan 5 00:03:19 2017 +0100

    fix encoding issues in tests
---
 debian/patches/encoding.patch | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/debian/patches/encoding.patch b/debian/patches/encoding.patch
index cab4802..573f126 100644
--- a/debian/patches/encoding.patch
+++ b/debian/patches/encoding.patch
@@ -1,6 +1,6 @@
 Description: force encoding to UTF-8 to fix test in clean environment
 Author: Cédric Boutillier <boutil at debian.org>
-Last-Update: 2016-12-29
+Last-Update: 2017-01-05
 Forwarded: not-needed
 
 --- a/test/cli/commands/test_create_site.rb
@@ -11,3 +11,19 @@ Forwarded: not-needed
  require 'helper'
  
  class Nanoc::CLI::Commands::CreateSiteTest < Nanoc::TestCase
+--- a/spec/contributors_spec.rb
++++ b/spec/contributors_spec.rb
+@@ -1,3 +1,5 @@
++Encoding.default_external="UTF-8" if defined? Encoding
++
+ describe 'list of contributors in README', chdir: false do
+   let(:contributors_in_readme) do
+     File.readlines('README.md').last.chomp("\n").split(', ')
+--- a/spec/nanoc/cli/commands/shell_spec.rb
++++ b/spec/nanoc/cli/commands/shell_spec.rb
+@@ -1,3 +1,5 @@
++Encoding.default_external="UTF-8" if defined? Encoding
++
+ describe Nanoc::CLI::Commands::Shell, site: true, stdio: true do
+   describe '#run' do
+     before do

-- 
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