From f91096a543895a49876ec8e276cefefff6fdbe5a Mon Sep 17 00:00:00 2001 From: Marcel Molina Date: Mon, 22 May 2006 15:17:45 +0000 Subject: Normalize classify's argument to a String so that it plays nice with Symbols. [Marcel Molina Jr.] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4359 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activesupport/test/inflector_test.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'activesupport/test') diff --git a/activesupport/test/inflector_test.rb b/activesupport/test/inflector_test.rb index c0a2b76a5a..e1676281ad 100644 --- a/activesupport/test/inflector_test.rb +++ b/activesupport/test/inflector_test.rb @@ -278,6 +278,12 @@ class InflectorTest < Test::Unit::TestCase assert_equal(class_name, Inflector.classify(table_name)) end end + + def test_classify_with_symbol + assert_nothing_raised do + assert_equal 'FooBar', Inflector.classify(:foo_bar) + end + end def test_humanize UnderscoreToHuman.each do |underscore, human| -- cgit v1.2.3