public
Fork of rails/rails
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/robbyrussell/rails.git
Search Repo:
Adding an example test case for pluralize for (y) -> (ies)
robbyrussell (author)
Wed May 14 17:17:24 -0700 2008
commit  6df995bbf2f0fcb26b7a1ba8d4e41ed9de77b6c8
tree    5662f2178f2b6d02d1763a8890573c81283d14a8
parent  603c853a340c9dbf6a959e74116487b870b7a893
...
167
168
169
 
 
170
171
172
...
167
168
169
170
171
172
173
174
0
@@ -167,6 +167,8 @@ class TextHelperTest < ActionView::TestCase
0
     assert_equal("0 counters", pluralize(nil, "count", "counters"))
0
     assert_equal("2 people", pluralize(2, "person"))
0
     assert_equal("10 buffaloes", pluralize(10, "buffalo"))
0
+ assert_equal("1 berry", pluralize(1, "berry"))
0
+ assert_equal("12 berries", pluralize(12, "berry"))
0
   end
0
 
0
   def test_auto_link_parsing

Comments

    No one has commented yet.