diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-04-30 08:39:28 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-04-30 08:39:28 +0000 |
commit | 14860ebe8226bd101531d8c0599035c9120cac4d (patch) | |
tree | e025c8734c07a7a56a0e1bbc0a4ba8c7349bb9b5 /activesupport | |
parent | b4fe4daa840741dce464b3c9ff5a7e447375bdd5 (diff) | |
download | rails-14860ebe8226bd101531d8c0599035c9120cac4d.tar.gz rails-14860ebe8226bd101531d8c0599035c9120cac4d.tar.bz2 rails-14860ebe8226bd101531d8c0599035c9120cac4d.zip |
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
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/test/inflector_test.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/activesupport/test/inflector_test.rb b/activesupport/test/inflector_test.rb index fca4072ad9..bbc5e6ca99 100644 --- a/activesupport/test/inflector_test.rb +++ b/activesupport/test/inflector_test.rb @@ -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 |