diff options
author | Norman Clarke <norman@njclarke.com> | 2012-01-05 17:08:27 -0300 |
---|---|---|
committer | Norman Clarke <norman@njclarke.com> | 2012-01-05 17:08:27 -0300 |
commit | 3fe7ca1dbea75ae83cd2eb868ba3f8518c0849a4 (patch) | |
tree | c2f8d0c0df58e98496a7345747f29873e6f35a78 /activesupport/test | |
parent | 51648a6fee31c9642d3ce8899a1c718e1604f4bc (diff) | |
download | rails-3fe7ca1dbea75ae83cd2eb868ba3f8518c0849a4.tar.gz rails-3fe7ca1dbea75ae83cd2eb868ba3f8518c0849a4.tar.bz2 rails-3fe7ca1dbea75ae83cd2eb868ba3f8518c0849a4.zip |
Replace Unicode.u_unpack with String#codepoints
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/multibyte_chars_test.rb | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/activesupport/test/multibyte_chars_test.rb b/activesupport/test/multibyte_chars_test.rb index 0c6b03f15f..87830d57d3 100644 --- a/activesupport/test/multibyte_chars_test.rb +++ b/activesupport/test/multibyte_chars_test.rb @@ -72,17 +72,6 @@ class MultibyteCharsTest < Test::Unit::TestCase assert !@proxy_class.consumes?(BYTE_STRING) end - def test_unpack_utf8_strings - assert_equal 4, ActiveSupport::Multibyte::Unicode.u_unpack(UNICODE_STRING).length - assert_equal 5, ActiveSupport::Multibyte::Unicode.u_unpack(ASCII_STRING).length - end - - def test_unpack_raises_encoding_error_on_broken_strings - assert_raise(ActiveSupport::Multibyte::EncodingError) do - ActiveSupport::Multibyte::Unicode.u_unpack(BYTE_STRING) - end - end - def test_concatenation_should_return_a_proxy_class_instance assert_equal ActiveSupport::Multibyte.proxy_class, ('a'.mb_chars + 'b').class assert_equal ActiveSupport::Multibyte.proxy_class, ('a'.mb_chars << 'b').class |