aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/cases
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2016-05-05 16:23:52 -0500
committerRafael França <rafaelmfranca@gmail.com>2016-05-05 16:23:52 -0500
commit9c86a1804d2e658a7067eecfe5d00646a5b6b749 (patch)
tree2849fc8724b4d7b8dc4ab3fc3eea9f9b5a418a66 /activemodel/test/cases
parented94ed3e1f1f82c6daa7a9f198f3a9983f964707 (diff)
parent4dd7a9d4a5b69bad7ff24b63f5fb8ae20eadc74c (diff)
downloadrails-9c86a1804d2e658a7067eecfe5d00646a5b6b749.tar.gz
rails-9c86a1804d2e658a7067eecfe5d00646a5b6b749.tar.bz2
rails-9c86a1804d2e658a7067eecfe5d00646a5b6b749.zip
Merge pull request #24806 from vipulnsward/errors-details-test
Followup of #18322
Diffstat (limited to 'activemodel/test/cases')
-rw-r--r--activemodel/test/cases/errors_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/test/cases/errors_test.rb b/activemodel/test/cases/errors_test.rb
index 26ba6ba4fb..fbf208836f 100644
--- a/activemodel/test/cases/errors_test.rb
+++ b/activemodel/test/cases/errors_test.rb
@@ -11,7 +11,7 @@ class ErrorsTest < ActiveModel::TestCase
attr_reader :errors
def validate!
- errors.add(:name, "cannot be nil") if name == nil
+ errors.add(:name, :blank, message: "cannot be nil") if name == nil
end
def read_attribute_for_validation(attr)