diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-03-05 07:47:39 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-03-05 07:47:39 +0900 |
commit | 8b18feb077410219be27c4dea90b95516339e420 (patch) | |
tree | 4e64c437b1b88274ce90f1ca1e02dbf167023ead | |
parent | 54286878c637e976223e06c4c78877d00112add1 (diff) | |
download | rails-8b18feb077410219be27c4dea90b95516339e420.tar.gz rails-8b18feb077410219be27c4dea90b95516339e420.tar.bz2 rails-8b18feb077410219be27c4dea90b95516339e420.zip |
remove outdated comment [ci skip]
Currently use minitest mock, mocha is not used.
-rw-r--r-- | activerecord/test/cases/validations/i18n_validation_test.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/activerecord/test/cases/validations/i18n_validation_test.rb b/activerecord/test/cases/validations/i18n_validation_test.rb index 981239c4d6..b8307d6665 100644 --- a/activerecord/test/cases/validations/i18n_validation_test.rb +++ b/activerecord/test/cases/validations/i18n_validation_test.rb @@ -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'}}} |