assert report.valid?
report.issue = nil
- assert !report.valid?
+ assert_not report.valid?
end
def test_user_required
assert report.valid?
report.user = nil
- assert !report.valid?
+ assert_not report.valid?
end
def test_details_required
assert report.valid?
report.details = ""
- assert !report.valid?
+ assert_not report.valid?
end
def test_category_required
assert report.valid?
report.category = ""
- assert !report.valid?
+ assert_not report.valid?
end
end