Put them at the bottom of test/test_helper.rb
def assert_error_on(field, model) assert !model.errors[field.to_sym].nil?, "No validation error on the #{field.to_s} field." end def assert_no_error_on(field, model) assert model.errors[field.to_sym].nil?, "Validation error on #{field.to_s}." end