Permalink
Browse files

Added commented out tests for staying either singular or plural on in…

…flection

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1252 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent b4fe4da commit 14860ebe8226bd101531d8c0599035c9120cac4d @dhh dhh committed Apr 30, 2005
Showing with 12 additions and 0 deletions.
  1. +12 −0 activesupport/test/inflector_test.rb
View
12 activesupport/test/inflector_test.rb
@@ -177,4 +177,16 @@ def test_constantize
assert_equal InflectorTest, Inflector.constantize("InflectorTest")
assert_raises(NameError) { Inflector.constantize("UnknownClass") }
end
+
+ # def test_staying_singular
+ # for term in SingularToPlural.keys
+ # assert_equal term, Inflector.singularize(term)
+ # end
+ # end
+ #
+ # def test_staying_plural
+ # for term in SingularToPlural.values
+ # assert_equal term, Inflector.singularize(term)
+ # end
+ # end
end

0 comments on commit 14860eb

Please sign in to comment.