aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2016-02-21 21:44:16 -0300
committerSantiago Pastorino <santiago@wyeworks.com>2016-02-21 21:44:16 -0300
commita6e5e543f831aab3f67d38c27587e81833965f4c (patch)
tree9636f1d0325cfac8c945381c9b978d5d729ddeef
parent3944b9c5df9911a76fe950263163c28e6f63e9b9 (diff)
parente3cfbca3b2cfef8a717f035eef621dfdb3f52276 (diff)
downloadrails-a6e5e543f831aab3f67d38c27587e81833965f4c.tar.gz
rails-a6e5e543f831aab3f67d38c27587e81833965f4c.tar.bz2
rails-a6e5e543f831aab3f67d38c27587e81833965f4c.zip
Merge pull request #23805 from ianfleeton/validates-length-of-virtual
Match test name to test (typo)
-rw-r--r--activerecord/test/cases/validations/length_validation_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/validations/length_validation_test.rb b/activerecord/test/cases/validations/length_validation_test.rb
index 624aeaaddb..4b6470393e 100644
--- a/activerecord/test/cases/validations/length_validation_test.rb
+++ b/activerecord/test/cases/validations/length_validation_test.rb
@@ -75,7 +75,7 @@ class LengthValidationTest < ActiveRecord::TestCase
assert pet.valid?
end
- def test_validates_presence_of_virtual_attribute_on_model
+ def test_validates_length_of_virtual_attribute_on_model
repair_validations(Pet) do
Pet.send(:attr_accessor, :nickname)
Pet.validates_length_of(:name, minimum: 1)