Skip to content

Commit

Permalink
Inflections: MatrixTest -> MatrixTests instead of MatricesTest. Closes
Browse files Browse the repository at this point in the history
…#8496.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6886 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
jeremy committed May 29, 2007
1 parent 9e76583 commit af2ebb2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions activesupport/CHANGELOG
@@ -1,5 +1,7 @@
*SVN* *SVN*


* Inflections: MatrixTest -> MatrixTests instead of MatricesTest. #8496 [jbwiv]

* Multibyte strings respond_to the String methods they proxy so they can be duck-typed. #6549 [Tuxie] * Multibyte strings respond_to the String methods they proxy so they can be duck-typed. #6549 [Tuxie]


* Array#to_xml yields the builder just like Hash and ActiveRecord::Base. #8472 [seth] * Array#to_xml yields the builder just like Hash and ActiveRecord::Base. #8472 [seth]
Expand Down
2 changes: 1 addition & 1 deletion activesupport/lib/active_support/inflections.rb
Expand Up @@ -12,7 +12,7 @@
inflect.plural(/(hive)$/i, '\1s') inflect.plural(/(hive)$/i, '\1s')
inflect.plural(/([^aeiouy]|qu)y$/i, '\1ies') inflect.plural(/([^aeiouy]|qu)y$/i, '\1ies')
inflect.plural(/(x|ch|ss|sh)$/i, '\1es') inflect.plural(/(x|ch|ss|sh)$/i, '\1es')
inflect.plural(/(matr|vert|ind)ix|ex$/i, '\1ices') inflect.plural(/(matr|vert|ind)(?:ix|ex)$/i, '\1ices')
inflect.plural(/([m|l])ouse$/i, '\1ice') inflect.plural(/([m|l])ouse$/i, '\1ice')
inflect.plural(/^(ox)$/i, '\1en') inflect.plural(/^(ox)$/i, '\1en')
inflect.plural(/(quiz)$/i, '\1zes') inflect.plural(/(quiz)$/i, '\1zes')
Expand Down
2 changes: 2 additions & 0 deletions activesupport/test/inflector_test.rb
Expand Up @@ -45,6 +45,7 @@ class InflectorTest < Test::Unit::TestCase


"basis" => "bases", "basis" => "bases",
"diagnosis" => "diagnoses", "diagnosis" => "diagnoses",
"diagnosis_a" => "diagnosis_as",


"datum" => "data", "datum" => "data",
"medium" => "media", "medium" => "media",
Expand Down Expand Up @@ -92,6 +93,7 @@ class InflectorTest < Test::Unit::TestCase


"vertex" => "vertices", "vertex" => "vertices",
"matrix" => "matrices", "matrix" => "matrices",
"matrix_fu" => "matrix_fus",


"axis" => "axes", "axis" => "axes",
"testis" => "testes", "testis" => "testes",
Expand Down

0 comments on commit af2ebb2

Please sign in to comment.