Skip to content
Browse files

Fix test names collision.

[#1549 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information...
1 parent 9539543 commit 96b815d7e81b9cef912ef94c96dca923fe43b0ba @miloops miloops committed with jeremy Dec 10, 2008
Showing with 4 additions and 4 deletions.
  1. +4 −4 activerecord/test/cases/validations_i18n_test.rb
View
8 activerecord/test/cases/validations_i18n_test.rb
@@ -506,7 +506,7 @@ def test_validates_length_of_within_finds_global_default_translation
# validates_length_of :is w/o mocha
- def test_validates_length_of_within_finds_custom_model_key_translation
+ def test_validates_length_of_is_finds_custom_model_key_translation
I18n.backend.store_translations 'en', :activerecord => {:errors => {:models => {:topic => {:attributes => {:title => {:wrong_length => 'custom message'}}}}}}
I18n.backend.store_translations 'en', :activerecord => {:errors => {:messages => {:wrong_length => 'global message'}}}
@@ -515,7 +515,7 @@ def test_validates_length_of_within_finds_custom_model_key_translation
assert_equal 'custom message', @topic.errors.on(:title)
end
- def test_validates_length_of_within_finds_global_default_translation
+ def test_validates_length_of_is_finds_global_default_translation
I18n.backend.store_translations 'en', :activerecord => {:errors => {:messages => {:wrong_length => 'global message'}}}
Topic.validates_length_of :title, :is => 5
@@ -525,7 +525,7 @@ def test_validates_length_of_within_finds_global_default_translation
# validates_uniqueness_of w/o mocha
- def test_validates_length_of_within_finds_custom_model_key_translation
+ def test_validates_length_of_is_finds_custom_model_key_translation
I18n.backend.store_translations 'en', :activerecord => {:errors => {:models => {:topic => {:attributes => {:title => {:wrong_length => 'custom message'}}}}}}
I18n.backend.store_translations 'en', :activerecord => {:errors => {:messages => {:wrong_length => 'global message'}}}
@@ -534,7 +534,7 @@ def test_validates_length_of_within_finds_custom_model_key_translation
assert_equal 'custom message', @topic.errors.on(:title)
end
- def test_validates_length_of_within_finds_global_default_translation
+ def test_validates_length_of_is_finds_global_default_translation
I18n.backend.store_translations 'en', :activerecord => {:errors => {:messages => {:wrong_length => 'global message'}}}
Topic.validates_length_of :title, :is => 5

0 comments on commit 96b815d

Please sign in to comment.
Something went wrong with that request. Please try again.