From f3f691eaf2ebf0452e634e68dfc3c0eac58d09f2 Mon Sep 17 00:00:00 2001 From: Rick Olson Date: Tue, 23 Jan 2007 05:11:34 +0000 Subject: A couple extra tests for #classify. Closes #7273. [Josh Susser] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6019 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activesupport/CHANGELOG | 2 ++ activesupport/test/inflector_test.rb | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'activesupport') diff --git a/activesupport/CHANGELOG b/activesupport/CHANGELOG index aab84054cc..fcb79ca344 100644 --- a/activesupport/CHANGELOG +++ b/activesupport/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* A couple extra tests for #classify. Closes #7273. [Josh Susser] + * Better docs for Object extensions [zackchandler, Jamis Buck] * Fix that Dates couldn't be subtracted from Dates after [5940]. [Sam Stephenson] diff --git a/activesupport/test/inflector_test.rb b/activesupport/test/inflector_test.rb index f8a665c1ed..7dace1a7a9 100644 --- a/activesupport/test/inflector_test.rb +++ b/activesupport/test/inflector_test.rb @@ -275,12 +275,13 @@ class InflectorTest < Test::Unit::TestCase def test_classify ClassNameToTableName.each do |class_name, table_name| assert_equal(class_name, Inflector.classify(table_name)) + assert_equal(class_name, Inflector.classify("table_prefix." + table_name)) end end def test_classify_with_symbol assert_nothing_raised do - assert_equal 'FooBar', Inflector.classify(:foo_bar) + assert_equal 'FooBar', Inflector.classify(:foo_bars) end end -- cgit v1.2.3