aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorMichael Koziarski <michael@koziarski.com>2006-10-14 00:31:30 +0000
committerMichael Koziarski <michael@koziarski.com>2006-10-14 00:31:30 +0000
commit81ddeadd4962f110d51a073a270c844407222593 (patch)
tree7c2ff92d6132fd9d9d8234c51e1c0970e3aa373c /actionpack/test
parentd73f32ce0004ddb1a8470ed50c9f8323ebc5613f (diff)
downloadrails-81ddeadd4962f110d51a073a270c844407222593.tar.gz
rails-81ddeadd4962f110d51a073a270c844407222593.tar.bz2
rails-81ddeadd4962f110d51a073a270c844407222593.zip
Replace KCODE checks with String#chars for truncate. Closes #6385 [Manfred Stienstra]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5300 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/template/text_helper_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/template/text_helper_test.rb b/actionpack/test/template/text_helper_test.rb
index dd127cde66..8649798bc3 100644
--- a/actionpack/test/template/text_helper_test.rb
+++ b/actionpack/test/template/text_helper_test.rb
@@ -29,8 +29,8 @@ class TextHelperTest < Test::Unit::TestCase
assert_equal "\354\225\210\353\205\225\355...", truncate("\354\225\210\353\205\225\355\225\230\354\204\270\354\232\224", 10)
end
with_kcode 'u' do
- assert_equal "\354\225\204\353\246\254\353\236\221 \354\225\204\353\246\254\353\236 ...",
- truncate("\354\225\204\353\246\254\353\236\221 \354\225\204\353\246\254\353\236 \354\225\204\353\235\274\353\246\254\354\230\244", 10)
+ assert_equal "\354\225\204\353\246\254\353\236\221 \354\225\204\353\246\254 ...",
+ truncate("\354\225\204\353\246\254\353\236\221 \354\225\204\353\246\254 \354\225\204\353\235\274\353\246\254\354\230\244", 10)
end
end