aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorRick Olson <technoweenie@gmail.com>2007-01-23 05:11:34 +0000
committerRick Olson <technoweenie@gmail.com>2007-01-23 05:11:34 +0000
commitf3f691eaf2ebf0452e634e68dfc3c0eac58d09f2 (patch)
tree7f618c89342f1b3e7b35e550606606f444eb942d /activesupport
parent8296c680d5f026b755ae1555933474d4be8c3377 (diff)
downloadrails-f3f691eaf2ebf0452e634e68dfc3c0eac58d09f2.tar.gz
rails-f3f691eaf2ebf0452e634e68dfc3c0eac58d09f2.tar.bz2
rails-f3f691eaf2ebf0452e634e68dfc3c0eac58d09f2.zip
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
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/CHANGELOG2
-rw-r--r--activesupport/test/inflector_test.rb3
2 files changed, 4 insertions, 1 deletions
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