1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 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@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
|