aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorGlauco Custódio <glauco.custodio@gmail.com>2016-02-25 23:05:54 -0300
committerGlauco Custódio <glauco.custodio@gmail.com>2016-02-25 23:05:54 -0300
commit7047e5562118d23c66c390b004f74ed35b90ab14 (patch)
treee1006cecad56da16d66709ea8d99dffcf1237cf5 /activesupport/test
parentf78d0eded3266918242027dab6bd10d07bcb55d5 (diff)
downloadrails-7047e5562118d23c66c390b004f74ed35b90ab14.tar.gz
rails-7047e5562118d23c66c390b004f74ed35b90ab14.tar.bz2
rails-7047e5562118d23c66c390b004f74ed35b90ab14.zip
Add upcase_first method
Diffstat (limited to 'activesupport/test')
-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)