1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

remove outdated comment [ci skip]

Currently use minitest mock, mocha is not used.
This commit is contained in:
yuuji.yaginuma 2016-03-05 07:47:39 +09:00
parent 54286878c6
commit 8b18feb077

View file

@ -47,8 +47,6 @@ class I18nValidationTest < ActiveRecord::TestCase
# [ "given on condition", {on: :save}, {}]
]
# validates_uniqueness_of w/ mocha
COMMON_CASES.each do |name, validation_options, generate_message_options|
test "validates_uniqueness_of on generated message #{name}" do
Topic.validates_uniqueness_of :title, validation_options
@ -59,8 +57,6 @@ class I18nValidationTest < ActiveRecord::TestCase
end
end
# validates_associated w/ mocha
COMMON_CASES.each do |name, validation_options, generate_message_options|
test "validates_associated on generated message #{name}" do
Topic.validates_associated :replies, validation_options
@ -70,8 +66,6 @@ class I18nValidationTest < ActiveRecord::TestCase
end
end
# validates_associated w/o mocha
def test_validates_associated_finds_custom_model_key_translation
I18n.backend.store_translations 'en', :activerecord => {:errors => {:models => {:topic => {:attributes => {:replies => {:invalid => 'custom message'}}}}}}
I18n.backend.store_translations 'en', :activerecord => {:errors => {:messages => {:invalid => 'global message'}}}