diff options
author | alkesh26 <alkesh26@gmail.com> | 2019-02-25 17:16:10 +0530 |
---|---|---|
committer | alkesh26 <alkesh26@gmail.com> | 2019-02-25 17:16:10 +0530 |
commit | 38941df2aace847a5a793b99df13c81fa3d5293a (patch) | |
tree | 05b72d1f37865d0f1557d2ab486b7bd1569f6b0c /activemodel | |
parent | 4e90d1577f7d83cca9ab2716da3aad4d85c2bb0b (diff) | |
download | rails-38941df2aace847a5a793b99df13c81fa3d5293a.tar.gz rails-38941df2aace847a5a793b99df13c81fa3d5293a.tar.bz2 rails-38941df2aace847a5a793b99df13c81fa3d5293a.zip |
activemodel typo fix.
Diffstat (limited to 'activemodel')
-rw-r--r-- | activemodel/test/cases/validations/conditional_validation_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activemodel/test/cases/validations/conditional_validation_test.rb b/activemodel/test/cases/validations/conditional_validation_test.rb index 1704db9a48..9674068aff 100644 --- a/activemodel/test/cases/validations/conditional_validation_test.rb +++ b/activemodel/test/cases/validations/conditional_validation_test.rb @@ -49,7 +49,7 @@ class ConditionalValidationTest < ActiveModel::TestCase assert_empty t.errors[:title] end - def test_unless_validation_using_array_of_true_and_felse_methods + def test_unless_validation_using_array_of_true_and_false_methods Topic.validates_length_of(:title, maximum: 5, too_long: "hoo %{count}", unless: [:condition_is_true, :condition_is_false]) t = Topic.new("title" => "uhohuhoh", "content" => "whatever") assert_predicate t, :valid? @@ -111,14 +111,14 @@ class ConditionalValidationTest < ActiveModel::TestCase assert_equal ["hoo 5"], t.errors["title"] end - def test_validation_using_conbining_if_true_and_unless_true_conditions + def test_validation_using_combining_if_true_and_unless_true_conditions Topic.validates_length_of(:title, maximum: 5, too_long: "hoo %{count}", if: :condition_is_true, unless: :condition_is_true) t = Topic.new("title" => "uhohuhoh", "content" => "whatever") assert_predicate t, :valid? assert_empty t.errors[:title] end - def test_validation_using_conbining_if_true_and_unless_false_conditions + def test_validation_using_combining_if_true_and_unless_false_conditions Topic.validates_length_of(:title, maximum: 5, too_long: "hoo %{count}", if: :condition_is_true, unless: :condition_is_false) t = Topic.new("title" => "uhohuhoh", "content" => "whatever") assert_predicate t, :invalid? |