diff options
author | Francesco RodrÃguez <frodsan@me.com> | 2018-10-08 10:57:18 +0200 |
---|---|---|
committer | Francesco RodrÃguez <frodsan@me.com> | 2018-10-12 07:42:51 +0200 |
commit | e52b223487c4a72ccdd6d631318fc3cfcf8097ba (patch) | |
tree | b268e66d7029647f4bc8b30df216c52e158cee67 /activesupport/test | |
parent | 8df7ed3b88fc9f19446d7207a745a331893b81cd (diff) | |
download | rails-e52b223487c4a72ccdd6d631318fc3cfcf8097ba.tar.gz rails-e52b223487c4a72ccdd6d631318fc3cfcf8097ba.tar.bz2 rails-e52b223487c4a72ccdd6d631318fc3cfcf8097ba.zip |
Deprecate Unicode#downcase/upcase/swapcase.
Use String methods directly instead.
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/multibyte_chars_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activesupport/test/multibyte_chars_test.rb b/activesupport/test/multibyte_chars_test.rb index 11c4822748..af63779917 100644 --- a/activesupport/test/multibyte_chars_test.rb +++ b/activesupport/test/multibyte_chars_test.rb @@ -719,6 +719,12 @@ class MultibyteCharsExtrasTest < ActiveSupport::TestCase assert_equal BYTE_STRING.dup.mb_chars.class, ActiveSupport::Multibyte::Chars end + def test_unicode_deprecations + assert_deprecated { ActiveSupport::Multibyte::Unicode.downcase("") } + assert_deprecated { ActiveSupport::Multibyte::Unicode.upcase("") } + assert_deprecated { ActiveSupport::Multibyte::Unicode.swapcase("") } + end + private def string_from_classes(classes) |