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:
parent
b4fe4daa84
commit
14860ebe82
1 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue