aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2008-05-14 17:17:24 -0700
committerRobby Russell <robby@planetargon.com>2008-05-14 17:17:24 -0700
commit6df995bbf2f0fcb26b7a1ba8d4e41ed9de77b6c8 (patch)
tree5662f2178f2b6d02d1763a8890573c81283d14a8 /actionpack
parent603c853a340c9dbf6a959e74116487b870b7a893 (diff)
downloadrails-6df995bbf2f0fcb26b7a1ba8d4e41ed9de77b6c8.tar.gz
rails-6df995bbf2f0fcb26b7a1ba8d4e41ed9de77b6c8.tar.bz2
rails-6df995bbf2f0fcb26b7a1ba8d4e41ed9de77b6c8.zip
Adding an example test case for pluralize for (y) -> (ies)
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/test/template/text_helper_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/test/template/text_helper_test.rb b/actionpack/test/template/text_helper_test.rb
index b803e7fa11..06e1fd1929 100644
--- a/actionpack/test/template/text_helper_test.rb
+++ b/actionpack/test/template/text_helper_test.rb
@@ -167,6 +167,8 @@ class TextHelperTest < ActionView::TestCase
assert_equal("0 counters", pluralize(nil, "count", "counters"))
assert_equal("2 people", pluralize(2, "person"))
assert_equal("10 buffaloes", pluralize(10, "buffalo"))
+ assert_equal("1 berry", pluralize(1, "berry"))
+ assert_equal("12 berries", pluralize(12, "berry"))
end
def test_auto_link_parsing