diff options
author | lulalala <mark@goodlife.tw> | 2018-03-26 14:46:45 +0800 |
---|---|---|
committer | lulalala <mark@goodlife.tw> | 2019-03-31 22:59:12 +0800 |
commit | db0256cad7487e7b8cc5f0640e0c8144d6b5d23f (patch) | |
tree | 5dd70cb994e66402132ccb92a0a2fda0e155df39 | |
parent | 002684e36e813469c3585e193f0698784c88278b (diff) | |
download | rails-db0256cad7487e7b8cc5f0640e0c8144d6b5d23f.tar.gz rails-db0256cad7487e7b8cc5f0640e0c8144d6b5d23f.tar.bz2 rails-db0256cad7487e7b8cc5f0640e0c8144d6b5d23f.zip |
Fix misalignment caused by SHA eebb9ddf9ba559a510975c486fe59a4edc9da97d
-rw-r--r-- | activemodel/test/cases/validations/i18n_validation_test.rb | 4 | ||||
-rw-r--r-- | activerecord/test/cases/validations/i18n_validation_test.rb | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/activemodel/test/cases/validations/i18n_validation_test.rb b/activemodel/test/cases/validations/i18n_validation_test.rb index eb03e837f1..f68219b4b6 100644 --- a/activemodel/test/cases/validations/i18n_validation_test.rb +++ b/activemodel/test/cases/validations/i18n_validation_test.rb @@ -167,8 +167,8 @@ class I18nValidationTest < ActiveModel::TestCase # [ case, validation_options, generate_message_options] [ "given no options", {}, {}], [ "given custom message", { message: "custom" }, { message: "custom" }], - [ "given if condition", { if: lambda { true } }, {}], - [ "given unless condition", { unless: lambda { false } }, {}], + [ "given if condition", { if: lambda { true } }, {}], + [ "given unless condition", { unless: lambda { false } }, {}], [ "given option that is not reserved", { format: "jpg" }, { format: "jpg" }] ] diff --git a/activerecord/test/cases/validations/i18n_validation_test.rb b/activerecord/test/cases/validations/i18n_validation_test.rb index b7c52ea18c..467f4b268a 100644 --- a/activerecord/test/cases/validations/i18n_validation_test.rb +++ b/activerecord/test/cases/validations/i18n_validation_test.rb @@ -40,11 +40,11 @@ class I18nValidationTest < ActiveRecord::TestCase COMMON_CASES = [ # [ case, validation_options, generate_message_options] [ "given no options", {}, {}], - [ "given custom message", { message: "custom" }, { message: "custom" }], - [ "given if condition", { if: lambda { true } }, {}], - [ "given unless condition", { unless: lambda { false } }, {}], - [ "given option that is not reserved", { format: "jpg" }, { format: "jpg" }], - [ "given on condition", { on: [:create, :update] }, {}] + [ "given custom message", { message: "custom" }, { message: "custom" }], + [ "given if condition", { if: lambda { true } }, {}], + [ "given unless condition", { unless: lambda { false } }, {}], + [ "given option that is not reserved", { format: "jpg" }, { format: "jpg" }], + [ "given on condition", { on: [:create, :update] }, {}] ] COMMON_CASES.each do |name, validation_options, generate_message_options| |