aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/inflector_test.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-04-11 09:46:22 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-04-11 09:46:22 -0300
commitd0b5484b5d039a1d08f79652011d40c7a829d6ef (patch)
tree84d9c0224d0e8e2fbcf87e34dc7097679c32a196 /activesupport/test/inflector_test.rb
parent142448259d7f450df49fdac06bf912edfecaa633 (diff)
parent075a1e21fa59433976dd6860b775a280db10f606 (diff)
downloadrails-d0b5484b5d039a1d08f79652011d40c7a829d6ef.tar.gz
rails-d0b5484b5d039a1d08f79652011d40c7a829d6ef.tar.bz2
rails-d0b5484b5d039a1d08f79652011d40c7a829d6ef.zip
Merge pull request #14705 from akshay-vishnoi/doc_changes
Add more test case for #demodulize, Improve documentation
Diffstat (limited to 'activesupport/test/inflector_test.rb')
-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