Skip to content
This repository
Browse code

Fix test names collision.

[#1549 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information...
commit 96b815d7e81b9cef912ef94c96dca923fe43b0ba 1 parent 9539543
Emilio Tagua miloops authored jeremy committed

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. +4 4 activerecord/test/cases/validations_i18n_test.rb
8 activerecord/test/cases/validations_i18n_test.rb
@@ -506,7 +506,7 @@ def test_validates_length_of_within_finds_global_default_translation
506 506
507 507 # validates_length_of :is w/o mocha
508 508
509   - def test_validates_length_of_within_finds_custom_model_key_translation
  509 + def test_validates_length_of_is_finds_custom_model_key_translation
510 510 I18n.backend.store_translations 'en', :activerecord => {:errors => {:models => {:topic => {:attributes => {:title => {:wrong_length => 'custom message'}}}}}}
511 511 I18n.backend.store_translations 'en', :activerecord => {:errors => {:messages => {:wrong_length => 'global message'}}}
512 512
@@ -515,7 +515,7 @@ def test_validates_length_of_within_finds_custom_model_key_translation
515 515 assert_equal 'custom message', @topic.errors.on(:title)
516 516 end
517 517
518   - def test_validates_length_of_within_finds_global_default_translation
  518 + def test_validates_length_of_is_finds_global_default_translation
519 519 I18n.backend.store_translations 'en', :activerecord => {:errors => {:messages => {:wrong_length => 'global message'}}}
520 520
521 521 Topic.validates_length_of :title, :is => 5
@@ -525,7 +525,7 @@ def test_validates_length_of_within_finds_global_default_translation
525 525
526 526 # validates_uniqueness_of w/o mocha
527 527
528   - def test_validates_length_of_within_finds_custom_model_key_translation
  528 + def test_validates_length_of_is_finds_custom_model_key_translation
529 529 I18n.backend.store_translations 'en', :activerecord => {:errors => {:models => {:topic => {:attributes => {:title => {:wrong_length => 'custom message'}}}}}}
530 530 I18n.backend.store_translations 'en', :activerecord => {:errors => {:messages => {:wrong_length => 'global message'}}}
531 531
@@ -534,7 +534,7 @@ def test_validates_length_of_within_finds_custom_model_key_translation
534 534 assert_equal 'custom message', @topic.errors.on(:title)
535 535 end
536 536
537   - def test_validates_length_of_within_finds_global_default_translation
  537 + def test_validates_length_of_is_finds_global_default_translation
538 538 I18n.backend.store_translations 'en', :activerecord => {:errors => {:messages => {:wrong_length => 'global message'}}}
539 539
540 540 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.