diff options
author | Francesco RodrÃguez <frodsan@me.com> | 2018-10-11 11:00:46 +0200 |
---|---|---|
committer | Francesco RodrÃguez <frodsan@me.com> | 2018-10-12 07:47:23 +0200 |
commit | 16e3b65674e3a41afe0415c88c75667e72fd0de9 (patch) | |
tree | 6bfcbcacbd0404bd25c56a76230853214a201f71 /activesupport/test | |
parent | e52b223487c4a72ccdd6d631318fc3cfcf8097ba (diff) | |
download | rails-16e3b65674e3a41afe0415c88c75667e72fd0de9.tar.gz rails-16e3b65674e3a41afe0415c88c75667e72fd0de9.tar.bz2 rails-16e3b65674e3a41afe0415c88c75667e72fd0de9.zip |
Use native String#capitalize
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 af63779917..3585b1ed32 100644 --- a/activesupport/test/multibyte_chars_test.rb +++ b/activesupport/test/multibyte_chars_test.rb @@ -477,7 +477,7 @@ class MultibyteCharsUTF8BehaviourTest < ActiveSupport::TestCase def test_method_works_for_proxyed_methods assert_equal "ll", "hello".mb_chars.method(:slice).call(2..3) # Defined on Chars - chars = "hello".mb_chars + chars = +"hello".mb_chars assert_equal "Hello", chars.method(:capitalize!).call # Defined on Chars assert_equal "Hello", chars assert_equal "jello", "hello".mb_chars.method(:gsub).call(/h/, "j") # Defined on String |