diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-05 07:44:46 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-05 07:44:46 +0000 |
commit | f4c579e92e5d0787721ba958a571570c12563b11 (patch) | |
tree | e0bfd18107e720a83efd1aebb92a5d58794308a5 /activesupport/test | |
parent | 0e92f36d7506ebb7248d046e19299553edad6f53 (diff) | |
download | rails-f4c579e92e5d0787721ba958a571570c12563b11.tar.gz rails-f4c579e92e5d0787721ba958a571570c12563b11.tar.bz2 rails-f4c579e92e5d0787721ba958a571570c12563b11.zip |
More inflector fixes #1608
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1699 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/inflector_test.rb | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/activesupport/test/inflector_test.rb b/activesupport/test/inflector_test.rb index 310dfa5a22..533879cbc2 100644 --- a/activesupport/test/inflector_test.rb +++ b/activesupport/test/inflector_test.rb @@ -61,6 +61,7 @@ class InflectorTest < Test::Unit::TestCase "news" => "news", "series" => "series", + "species" => "species", "perspective" => "perspectives", @@ -74,12 +75,27 @@ class InflectorTest < Test::Unit::TestCase "equipment" => "equipment", "bus" => "buses", "mouse" => "mice", + "louse" => "lice", "house" => "houses", "octopus" => "octopi", "virus" => "viri", "alias" => "aliases", - "portfolio" => "portfolios" + "portfolio" => "portfolios", + + "vertex" => "vertices", + "matrix" => "matrices", + + "axis" => "axes", + "testis" => "testes", + "crisis" => "crises", + + "rice" => "rice", + "shoe" => "shoes", + + "horse" => "horses", + "prize" => "prizes", + "edge" => "edges" } CamelToUnderscore = { @@ -198,16 +214,4 @@ 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 +end
\ No newline at end of file |