diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-03-30 01:08:33 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-03-30 01:08:33 -0300 |
commit | 3be1a75f3fff1042934ba60ae4093237a6b31712 (patch) | |
tree | 0f341af38f85d33e20cf6163a13962d5fc02a264 /activesupport/test | |
parent | 0df82a64530ee208fc2a7d1b19af75a39c1a44a0 (diff) | |
parent | 7047e5562118d23c66c390b004f74ed35b90ab14 (diff) | |
download | rails-3be1a75f3fff1042934ba60ae4093237a6b31712.tar.gz rails-3be1a75f3fff1042934ba60ae4093237a6b31712.tar.bz2 rails-3be1a75f3fff1042934ba60ae4093237a6b31712.zip |
Merge pull request #23895 from glaucocustodio/add_upcase_first_method
Add upcase_first method
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/core_ext/string_ext_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activesupport/test/core_ext/string_ext_test.rb b/activesupport/test/core_ext/string_ext_test.rb index 2e69816364..5c0b60039a 100644 --- a/activesupport/test/core_ext/string_ext_test.rb +++ b/activesupport/test/core_ext/string_ext_test.rb @@ -76,6 +76,10 @@ class StringInflectionsTest < ActiveSupport::TestCase end end + def test_upcase_first + assert_equal "What a Lovely Day", "what a Lovely Day".upcase_first + end + def test_camelize CamelToUnderscore.each do |camel, underscore| assert_equal(camel, underscore.camelize) |