[DRE-commits] [ruby-gelf] 02/04: Fix failing tests
David Suárez
deiv-guest at alioth.debian.org
Sat Oct 12 19:13:59 UTC 2013
This is an automated email from the git hooks/post-receive script.
deiv-guest pushed a commit to branch master
in repository ruby-gelf.
commit 4ed15635f82441c177dda9391e4bae2236df6bdd
Author: David Suárez <david.sephirot at gmail.com>
Date: Sat Oct 12 21:00:21 2013 +0200
Fix failing tests
---
debian/patches/002-fix-tests-string-encodings | 17 +++++++++++++++++
debian/patches/series | 1 +
2 files changed, 18 insertions(+)
diff --git a/debian/patches/002-fix-tests-string-encodings b/debian/patches/002-fix-tests-string-encodings
new file mode 100644
index 0000000..003e009
--- /dev/null
+++ b/debian/patches/002-fix-tests-string-encodings
@@ -0,0 +1,17 @@
+Description: Fix tests strings encodings
+ Fix the encoding of some string literals in the test code
+
+ Bug-Debian: http://bugs.debian.org/720224
+ Author: David Suárez <david.sephirot at gmail.com>
+
+--- ruby-gelf-1.4.0.orig/test/test_notifier.rb
++++ ruby-gelf-1.4.0/test/test_notifier.rb
+@@ -149,7 +149,7 @@ class TestNotifier < Test::Unit::TestCas
+ datagrams = @notifier.__send__(:datagrams_from_hash)
+ assert_equal 1, datagrams.count
+ assert_instance_of String, datagrams[0]
+- assert_equal "\x78\x9c", datagrams[0][0..1] # zlib header
++ assert_equal "\x78\x9c".force_encoding("ASCII-8BIT"), datagrams[0][0..1] # zlib header
+ end
+
+ should "split long data" do
diff --git a/debian/patches/series b/debian/patches/series
index 5c34213..0c32975 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
001-fix-mocha-deprecation
+002-fix-tests-string-encodings
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-gelf.git
More information about the Pkg-ruby-extras-commits
mailing list