Multibyte: skip String#each_char test for Ruby 1.9

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8461 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jeremy Kemper 2007-12-21 11:21:54 +00:00
parent c95002c284
commit 8e432d9a5b
1 changed files with 9 additions and 8 deletions

View File

@ -167,7 +167,7 @@ class StringInflectionsTest < Test::Unit::TestCase
assert !s.end_with?('el')
end
# FIXME: Ruby 1.9
if RUBY_VERSION < '1.9'
def test_each_char_with_utf8_string_when_kcode_is_utf8
old_kcode, $KCODE = $KCODE, 'UTF8'
'€2.99'.each_char do |char|
@ -178,3 +178,4 @@ class StringInflectionsTest < Test::Unit::TestCase
$KCODE = old_kcode
end
end
end