aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-11-05 16:42:53 +0000
committerJon Leighton <j@jonathanleighton.com>2011-11-05 16:42:53 +0000
commit10773f94eae0dacf10e2ed0c28f6bb73805c2521 (patch)
tree4e1d2248ededffbf73da8eefa413e85c00ab84ae /actionpack
parent9a111c7cf94d9e4614a0687345084cfe60a69187 (diff)
downloadrails-10773f94eae0dacf10e2ed0c28f6bb73805c2521.tar.gz
rails-10773f94eae0dacf10e2ed0c28f6bb73805c2521.tar.bz2
rails-10773f94eae0dacf10e2ed0c28f6bb73805c2521.zip
Skip test_default_external_works on the CI for Ruby 1.9.3.
This test is affected by a bug in Ruby 1.9.3p0 and trunk: http://redmine.ruby-lang.org/issues/5564 Given we cannot fix it for ourselves, it is better to skip for now so that we will easily see if further failures are introduced. Jon Leighton is monitoring the bug report and will revert this when a suitable solution is found (either a new Ruby release or a generic workaround). If you are using 1.9.3 in your app and have templates that are not in UTF-8, you should add a workaround early on in the boot process. For example, if your templates are Shift_JIS encoded, then add the following in an initializer: Encoding::Converter.new('Shift_JIS', 'UTF-8')
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/test/template/template_test.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/actionpack/test/template/template_test.rb b/actionpack/test/template/template_test.rb
index 70ca876c67..f3328b5dca 100644
--- a/actionpack/test/template/template_test.rb
+++ b/actionpack/test/template/template_test.rb
@@ -130,6 +130,17 @@ class TestERBTemplate < ActiveSupport::TestCase
# is set to something other than UTF-8, we don't
# get any errors and get back a UTF-8 String.
def test_default_external_works
+ if ENV['TRAVIS'] && RUBY_VERSION >= '1.9.3'
+ skip(
+ "There is currently a bug in Ruby trunk and in 1.9.3 which makes this test fail. " \
+ "Please see http://redmine.ruby-lang.org/issues/5564. " \
+ "Given there is no known generic workaround that this requires a fix in Ruby itself, " \
+ "this test is skipped on the CI for now so that we don't pollute the CI with failures. " \
+ "Jon Leighton is monitoring the bug report and will renable this test when a solution " \
+ "becomes available."
+ )
+ end
+
with_external_encoding "ISO-8859-1" do
@template = new_template("hello \xFCmlat")
assert_equal Encoding::UTF_8, render.encoding