test/unit/test_errors.rb in hashrocket-validatable-1.7.2 vs test/unit/test_errors.rb in hashrocket-validatable-1.7.4

- old
+ new

@@ -58,7 +58,13 @@ expect 2 do errors = Validatable::Errors.new errors.add(:attribute1, "message1") errors.add(:attribute2, "message2") errors.count - end + end + + expect "message" do + errors = Validatable::Errors.new + errors.add(:attribute, "message") + errors[:attribute] + end end \ No newline at end of file