diff options
author | Sam Elliott <sam@lenary.co.uk> | 2011-02-28 22:17:38 +0000 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2011-03-01 12:39:04 -0200 |
commit | 9cf3b1f6719e1fe917f5abe56be6fee157bc3c13 (patch) | |
tree | 297e51bba7ba2154998056a083709863ad4591a5 /activesupport/test | |
parent | 46bb4242874fe716268e3bb7b1ce3bb3c2d883e4 (diff) | |
download | rails-9cf3b1f6719e1fe917f5abe56be6fee157bc3c13.tar.gz rails-9cf3b1f6719e1fe917f5abe56be6fee157bc3c13.tar.bz2 rails-9cf3b1f6719e1fe917f5abe56be6fee157bc3c13.zip |
Remove warnings about redefined test methods
[#6490 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/inflector_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activesupport/test/inflector_test.rb b/activesupport/test/inflector_test.rb index f55116dfab..1670d9ee7d 100644 --- a/activesupport/test/inflector_test.rb +++ b/activesupport/test/inflector_test.rb @@ -51,21 +51,21 @@ class InflectorTest < Test::Unit::TestCase end SingularToPlural.each do |singular, plural| - define_method "test_pluralize_#{singular}" do + define_method "test_pluralize_singular_#{singular}" do assert_equal(plural, ActiveSupport::Inflector.pluralize(singular)) assert_equal(plural.capitalize, ActiveSupport::Inflector.pluralize(singular.capitalize)) end end SingularToPlural.each do |singular, plural| - define_method "test_singularize_#{plural}" do + define_method "test_singularize_plural_#{plural}" do assert_equal(singular, ActiveSupport::Inflector.singularize(plural)) assert_equal(singular.capitalize, ActiveSupport::Inflector.singularize(plural.capitalize)) end end - + SingularToPlural.each do |singular, plural| - define_method "test_pluralize_#{plural}" do + define_method "test_pluralize_plural_#{plural}" do assert_equal(plural, ActiveSupport::Inflector.pluralize(plural)) assert_equal(plural.capitalize, ActiveSupport::Inflector.pluralize(plural.capitalize)) end |