Mirror the documented new behavior of including details, when performing errors test.
This commit is contained in:
Vipul A M 2016-05-02 02:39:07 +05:30
parent 8ef4585303
commit 4dd7a9d4a5

@ -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)