aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-07-01 16:57:58 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-07-01 16:57:58 +0000
commit64612db7cf85aee8434e7b9b4fd8d6d0249c60e4 (patch)
treec58c03bf10907601c2e134068f53dfb0bd2fc05f /activesupport/test
parent5ddffc8c24635fe44cd66f78d7b5e2f7091e34d6 (diff)
downloadrails-64612db7cf85aee8434e7b9b4fd8d6d0249c60e4.tar.gz
rails-64612db7cf85aee8434e7b9b4fd8d6d0249c60e4.tar.bz2
rails-64612db7cf85aee8434e7b9b4fd8d6d0249c60e4.zip
Added new rules to the Inflector to deal with more unusual plurals mouse/louse => mice/lice, information => information, ox => oxen #1571 [foamdino@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1582 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/test')
-rw-r--r--activesupport/test/inflector_test.rb12
1 files changed, 11 insertions, 1 deletions
diff --git a/activesupport/test/inflector_test.rb b/activesupport/test/inflector_test.rb
index 670ab83317..b95d543304 100644
--- a/activesupport/test/inflector_test.rb
+++ b/activesupport/test/inflector_test.rb
@@ -60,7 +60,17 @@ class InflectorTest < Test::Unit::TestCase
"series" => "series",
- "perspective" => "perspectives"
+ "perspective" => "perspectives",
+
+ "ox" => "oxen",
+ "buffalo" => "buffaloes",
+ "tomato" => "tomatoes",
+ "dwarf" => "dwarves",
+ "elf" => "elves",
+ "information" => "information",
+ "bus" => "buses",
+ "mouse" => "mice",
+ "louse" => "lice"
}
CamelToUnderscore = {