aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2016-05-02 02:39:07 +0530
committerVipul A M <vipulnsward@gmail.com>2016-05-02 02:39:07 +0530
commit4dd7a9d4a5b69bad7ff24b63f5fb8ae20eadc74c (patch)
treea0ebd01d4429b2f5060a62254a4da3d76816ea82 /activemodel
parent8ef45853034269396435143d1e7fa99354616863 (diff)
downloadrails-4dd7a9d4a5b69bad7ff24b63f5fb8ae20eadc74c.tar.gz
rails-4dd7a9d4a5b69bad7ff24b63f5fb8ae20eadc74c.tar.bz2
rails-4dd7a9d4a5b69bad7ff24b63f5fb8ae20eadc74c.zip
Followup of #18322
Mirror the documented new behavior of including details, when performing errors test.
Diffstat (limited to 'activemodel')
-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)