blob: 30b947f6e7c21730d0b147ce5d69a3f2891e4ccf (
plain)
1
2
3
4
5
6
7
8
9
10
|
module RecordAssertions
def assert_error(record, options)
options.each do |k, v|
errors = record.errors[k]
assert_equal I18n.t("errors.messages.#{v}"), errors.first
end
end
end
|