1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Added commented out tests for staying either singular or plural on inflection

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1252 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2005-04-30 08:39:28 +00:00
parent b4fe4daa84
commit 14860ebe82

View file

@ -177,4 +177,16 @@ class InflectorTest < Test::Unit::TestCase
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