Fix pluralization of Objective.

Fixes #3921
This commit is contained in:
mark_story 2013-07-17 10:04:29 -04:00
parent aa18a53d25
commit 7b5122adb1
2 changed files with 3 additions and 1 deletions

View file

@ -117,6 +117,7 @@ class InflectorTest extends CakeTestCase {
$this->assertEquals(Inflector::singularize('teeth'), 'tooth');
$this->assertEquals(Inflector::singularize('geese'), 'goose');
$this->assertEquals(Inflector::singularize('feet'), 'foot');
$this->assertEquals(Inflector::singularize('objectives'), 'objective');
$this->assertEquals(Inflector::singularize(''), '');
}
@ -177,6 +178,7 @@ class InflectorTest extends CakeTestCase {
$this->assertEquals(Inflector::pluralize('tooth'), 'teeth');
$this->assertEquals(Inflector::pluralize('goose'), 'geese');
$this->assertEquals(Inflector::pluralize('foot'), 'feet');
$this->assertEquals(Inflector::pluralize('objective'), 'objectives');
$this->assertEquals(Inflector::pluralize(''), '');
}

View file

@ -125,9 +125,9 @@ class Inflector {
'/(m)ovies$/i' => '\1\2ovie',
'/(s)eries$/i' => '\1\2eries',
'/([^aeiouy]|qu)ies$/i' => '\1y',
'/(tive)s$/i' => '\1',
'/([lre])ves$/i' => '\1f',
'/([^fo])ves$/i' => '\1fe',
'/(tive)s$/i' => '\1',
'/(hive)s$/i' => '\1',
'/(drive)s$/i' => '\1',
'/(^analy)ses$/i' => '\1sis',