diff options
author | Sergey Nartimov <just.lest@gmail.com> | 2012-01-05 18:25:27 +0300 |
---|---|---|
committer | Sergey Nartimov <just.lest@gmail.com> | 2012-01-05 18:25:27 +0300 |
commit | 7301aa2e0d3b16b96fcbffcd79ee9bbf6bc65c57 (patch) | |
tree | 609e65d21880e33286910c5bb62d304ef96da572 /activesupport/test | |
parent | 44951c8d44bebbb94f7a19b043b3eddcbd8b4657 (diff) | |
download | rails-7301aa2e0d3b16b96fcbffcd79ee9bbf6bc65c57.tar.gz rails-7301aa2e0d3b16b96fcbffcd79ee9bbf6bc65c57.tar.bz2 rails-7301aa2e0d3b16b96fcbffcd79ee9bbf6bc65c57.zip |
refactor AS::Multibyte::Chars
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/multibyte_chars_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/test/multibyte_chars_test.rb b/activesupport/test/multibyte_chars_test.rb index 20e56e2c81..ea02ef0603 100644 --- a/activesupport/test/multibyte_chars_test.rb +++ b/activesupport/test/multibyte_chars_test.rb @@ -506,7 +506,7 @@ class MultibyteCharsExtrasTest < Test::Unit::TestCase def test_limit_should_work_on_a_multibyte_string example = chars(UNICODE_STRING) - bytesize = UNICODE_STRING.respond_to?(:bytesize) ? UNICODE_STRING.bytesize : UNICODE_STRING.size + bytesize = UNICODE_STRING.bytesize assert_equal UNICODE_STRING, example.limit(bytesize) assert_equal '', example.limit(0) |