Skip to content

Commit

Permalink
Fix test names collision.
Browse files Browse the repository at this point in the history
[#1549 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information
miloops authored and jeremy committed Dec 10, 2008
1 parent c9e176d commit 0839401
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions activerecord/test/cases/validations_i18n_test.rb
Expand Up @@ -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'}}}

Expand All @@ -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
Expand All @@ -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'}}}

Expand All @@ -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
Expand Down

0 comments on commit 0839401

Please sign in to comment.