[DRE-commits] [SCM] ruby-mail.git branch, master, updated. upstream/2.4.1-20-g26caf51
Carl Worth
cworth at debian.org
Tue Mar 6 01:23:18 UTC 2012
The following commit has been merged in the master branch:
commit c633d0a0b533c2183fde3e7dd90bccd44be26159
Author: Carl Worth <cworth at debian.org>
Date: Mon Mar 5 17:12:32 2012 -0800
debian: Force UTF-8 encoding when running tests.
Otherwise, 4 tests fail when running tests with ruby1.9, (and with a
non-UTF-8 locale such as LANG=C).
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
index f6d0a8a..8784211 100644
--- a/debian/ruby-tests.rb
+++ b/debian/ruby-tests.rb
@@ -1 +1,5 @@
+if RUBY_VERSION =~ /1.9/
+ Encoding.default_external = Encoding::UTF_8
+end
+
Dir['{spec}/**/*.rb'].each { |f| require f }
--
ruby-mail.git
More information about the Pkg-ruby-extras-commits
mailing list