diff options
author | Sergey Nartimov <just.lest@gmail.com> | 2012-01-06 00:11:49 +0300 |
---|---|---|
committer | Sergey Nartimov <just.lest@gmail.com> | 2012-01-06 00:11:49 +0300 |
commit | 1c095f2686a32b3f7ccc68c800c05760a97d8b55 (patch) | |
tree | 088a35ab8a33642f97320854e008d079e098e0e9 /actionpack/test/template | |
parent | 39625d153781ffa07121c35dc4bba40410624c9c (diff) | |
download | rails-1c095f2686a32b3f7ccc68c800c05760a97d8b55.tar.gz rails-1c095f2686a32b3f7ccc68c800c05760a97d8b55.tar.bz2 rails-1c095f2686a32b3f7ccc68c800c05760a97d8b55.zip |
remove obsolete commented asserts in TextHelper tests
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/text_helper_test.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/actionpack/test/template/text_helper_test.rb b/actionpack/test/template/text_helper_test.rb index 839bf900dc..aa185d9cb0 100644 --- a/actionpack/test/template/text_helper_test.rb +++ b/actionpack/test/template/text_helper_test.rb @@ -81,10 +81,6 @@ class TextHelperTest < ActionView::TestCase end def test_truncate_multibyte - # .mb_chars always returns a UTF-8 String. - # 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", :length => 10) - assert_equal "\354\225\204\353\246\254\353\236\221 \354\225\204\353\246\254 ...".force_encoding('UTF-8'), 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".force_encoding('UTF-8'), :length => 10) end @@ -231,8 +227,6 @@ class TextHelperTest < ActionView::TestCase def test_excerpt_with_utf8 assert_equal("...\357\254\203ciency could not be...".force_encoding('UTF-8'), excerpt("That's why e\357\254\203ciency could not be helped".force_encoding('UTF-8'), 'could', 8)) - # .mb_chars always returns UTF-8, even in 1.9. This is not great, but it's how it works. Let's work this out. - # assert_equal("...\203ciency could not be...", excerpt("That's why e\357\254\203ciency could not be helped".force_encoding("BINARY"), 'could', 8)) end def test_word_wrap |