aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/multibyte_chars_test.rb
diff options
context:
space:
mode:
authorSergey Nartimov <just.lest@gmail.com>2012-01-05 18:25:27 +0300
committerSergey Nartimov <just.lest@gmail.com>2012-01-05 18:25:27 +0300
commit7301aa2e0d3b16b96fcbffcd79ee9bbf6bc65c57 (patch)
tree609e65d21880e33286910c5bb62d304ef96da572 /activesupport/test/multibyte_chars_test.rb
parent44951c8d44bebbb94f7a19b043b3eddcbd8b4657 (diff)
downloadrails-7301aa2e0d3b16b96fcbffcd79ee9bbf6bc65c57.tar.gz
rails-7301aa2e0d3b16b96fcbffcd79ee9bbf6bc65c57.tar.bz2
rails-7301aa2e0d3b16b96fcbffcd79ee9bbf6bc65c57.zip
refactor AS::Multibyte::Chars
Diffstat (limited to 'activesupport/test/multibyte_chars_test.rb')
-rw-r--r--activesupport/test/multibyte_chars_test.rb2
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)