Permalink
Browse files

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
  • Loading branch information...
technoweenie committed Jan 23, 2007
1 parent 8296c68 commit f3f691eaf2ebf0452e634e68dfc3c0eac58d09f2
Showing with 4 additions and 1 deletion.
  1. +2 −0 activesupport/CHANGELOG
  2. +2 −1 activesupport/test/inflector_test.rb
View
@@ -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]
@@ -275,12 +275,13 @@ def test_tableize
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

0 comments on commit f3f691e

Please sign in to comment.