aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorAkshay Vishnoi <akshay.vishnoi@vinsol.com>2014-04-11 17:57:16 +0530
committerAkshay Vishnoi <akshay.vishnoi@vinsol.com>2014-04-11 17:57:16 +0530
commit075a1e21fa59433976dd6860b775a280db10f606 (patch)
tree4d1ebc5ca7fcbe1187002d0f01be1d151a13bc66 /activesupport/test
parent8c1406cf256c0140748c98cd3c533afc504e0007 (diff)
downloadrails-075a1e21fa59433976dd6860b775a280db10f606.tar.gz
rails-075a1e21fa59433976dd6860b775a280db10f606.tar.bz2
rails-075a1e21fa59433976dd6860b775a280db10f606.zip
Add more test case for #demodulize, Improve documentation
Diffstat (limited to 'activesupport/test')
-rw-r--r--activesupport/test/inflector_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activesupport/test/inflector_test.rb b/activesupport/test/inflector_test.rb
index 35967ba656..b0b4738eb3 100644
--- a/activesupport/test/inflector_test.rb
+++ b/activesupport/test/inflector_test.rb
@@ -200,6 +200,7 @@ class InflectorTest < ActiveSupport::TestCase
def test_demodulize
assert_equal "Account", ActiveSupport::Inflector.demodulize("MyApplication::Billing::Account")
assert_equal "Account", ActiveSupport::Inflector.demodulize("Account")
+ assert_equal "Account", ActiveSupport::Inflector.demodulize("::Account")
assert_equal "", ActiveSupport::Inflector.demodulize("")
end