diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-02-15 02:02:20 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-02-15 02:02:20 +0000 |
commit | 603ab7d812931d5f85171393b30665b244a6187e (patch) | |
tree | 06be560c4c73b4b7a78c01966333255655c6ad9f /activesupport/test/inflector_test.rb | |
parent | b1999be5a7efd67e2602c37ed898aa8433661863 (diff) | |
download | rails-603ab7d812931d5f85171393b30665b244a6187e.tar.gz rails-603ab7d812931d5f85171393b30665b244a6187e.tar.bz2 rails-603ab7d812931d5f85171393b30665b244a6187e.zip |
Fixed Inflector for words like "news" and "series" that are the same in plural and singular #603 [echion], #615 [marcenuc]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@618 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/test/inflector_test.rb')
-rw-r--r-- | activesupport/test/inflector_test.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/activesupport/test/inflector_test.rb b/activesupport/test/inflector_test.rb index cdab0f9ed0..083e7993dc 100644 --- a/activesupport/test/inflector_test.rb +++ b/activesupport/test/inflector_test.rb @@ -49,7 +49,13 @@ class InflectorTest < Test::Unit::TestCase "day" => "days", "comment" => "comments", - "foobar" => "foobars" + "foobar" => "foobars", + "newsletter" => "newsletters", + + "old_news" => "old_news", + "news" => "news", + + "series" => "series" } CamelToUnderscore = { @@ -162,4 +168,4 @@ class InflectorTest < Test::Unit::TestCase assert_equal InflectorTest, Inflector.constantize("InflectorTest") assert_raises(NameError) { Inflector.constantize("UnknownClass") } end -end
\ No newline at end of file +end |