Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 1252

Show
Ignore:
Timestamp:
04/30/05 08:39:28 (4 years ago)
Author:
david
Message:

Added commented out tests for staying either singular or plural on inflection

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/activesupport/test/inflector_test.rb

    r1101 r1252  
    178178    assert_raises(NameError) { Inflector.constantize("UnknownClass") } 
    179179  end 
     180   
     181  # def test_staying_singular 
     182  #   for term in SingularToPlural.keys 
     183  #     assert_equal term, Inflector.singularize(term) 
     184  #   end 
     185  # end 
     186  #  
     187  # def test_staying_plural 
     188  #   for term in SingularToPlural.values 
     189  #     assert_equal term, Inflector.singularize(term) 
     190  #   end 
     191  # end 
    180192end