aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/validations
diff options
context:
space:
mode:
authorlulalala <mark@goodlife.tw>2018-03-26 14:46:45 +0800
committerlulalala <mark@goodlife.tw>2019-03-31 22:59:12 +0800
commitdb0256cad7487e7b8cc5f0640e0c8144d6b5d23f (patch)
tree5dd70cb994e66402132ccb92a0a2fda0e155df39 /activerecord/test/cases/validations
parent002684e36e813469c3585e193f0698784c88278b (diff)
downloadrails-db0256cad7487e7b8cc5f0640e0c8144d6b5d23f.tar.gz
rails-db0256cad7487e7b8cc5f0640e0c8144d6b5d23f.tar.bz2
rails-db0256cad7487e7b8cc5f0640e0c8144d6b5d23f.zip
Fix misalignment caused by SHA eebb9ddf9ba559a510975c486fe59a4edc9da97d
Diffstat (limited to 'activerecord/test/cases/validations')
-rw-r--r--activerecord/test/cases/validations/i18n_validation_test.rb10
1 files changed, 5 insertions, 5 deletions
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|