From 075a1e21fa59433976dd6860b775a280db10f606 Mon Sep 17 00:00:00 2001 From: Akshay Vishnoi Date: Fri, 11 Apr 2014 17:57:16 +0530 Subject: Add more test case for #demodulize, Improve documentation --- activesupport/test/inflector_test.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activesupport/test/inflector_test.rb') 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 -- cgit v1.2.3