aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/string_ext_test.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2016-03-30 01:08:33 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2016-03-30 01:08:33 -0300
commit3be1a75f3fff1042934ba60ae4093237a6b31712 (patch)
tree0f341af38f85d33e20cf6163a13962d5fc02a264 /activesupport/test/core_ext/string_ext_test.rb
parent0df82a64530ee208fc2a7d1b19af75a39c1a44a0 (diff)
parent7047e5562118d23c66c390b004f74ed35b90ab14 (diff)
downloadrails-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/core_ext/string_ext_test.rb')
-rw-r--r--activesupport/test/core_ext/string_ext_test.rb4
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)