From 4dd7a9d4a5b69bad7ff24b63f5fb8ae20eadc74c Mon Sep 17 00:00:00 2001 From: Vipul A M Date: Mon, 2 May 2016 02:39:07 +0530 Subject: [PATCH] Followup of #18322 Mirror the documented new behavior of including details, when performing errors test. --- activemodel/test/cases/errors_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activemodel/test/cases/errors_test.rb b/activemodel/test/cases/errors_test.rb index 26ba6ba4fb5bc..fbf208836f1d1 100644 --- a/activemodel/test/cases/errors_test.rb +++ b/activemodel/test/cases/errors_test.rb @@ -11,7 +11,7 @@ def initialize 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)