From 14860ebe8226bd101531d8c0599035c9120cac4d Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 30 Apr 2005 08:39:28 +0000 Subject: Added commented out tests for staying either singular or plural on inflection git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1252 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activesupport/test/inflector_test.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'activesupport/test') diff --git a/activesupport/test/inflector_test.rb b/activesupport/test/inflector_test.rb index fca4072ad9..bbc5e6ca99 100644 --- a/activesupport/test/inflector_test.rb +++ b/activesupport/test/inflector_test.rb @@ -177,4 +177,16 @@ class InflectorTest < Test::Unit::TestCase assert_equal InflectorTest, Inflector.constantize("InflectorTest") assert_raises(NameError) { Inflector.constantize("UnknownClass") } end + + # def test_staying_singular + # for term in SingularToPlural.keys + # assert_equal term, Inflector.singularize(term) + # end + # end + # + # def test_staying_plural + # for term in SingularToPlural.values + # assert_equal term, Inflector.singularize(term) + # end + # end end -- cgit v1.2.3