Permalink
Browse files

Remove warnings about redefined test methods

[#6490 state:committed]

Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
  • Loading branch information...
1 parent 46bb424 commit 9cf3b1f6719e1fe917f5abe56be6fee157bc3c13 @lenary lenary committed with spastorino Feb 28, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 activesupport/test/inflector_test.rb
@@ -51,21 +51,21 @@ def test_uncountable_word_is_not_greedy
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

0 comments on commit 9cf3b1f

Please sign in to comment.