Skip to content

Commit

Permalink
Followup of rails#18322
Browse files Browse the repository at this point in the history
Mirror the documented new behavior of including details, when performing errors test.
  • Loading branch information
vipulnsward committed May 1, 2016
1 parent 8ef4585 commit 4dd7a9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activemodel/test/cases/errors_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4dd7a9d

Please sign in to comment.