tag.changeset_id = 1
tag.k = k
tag.v = "v"
- assert !tag.valid?, "Key #{k} should be too long"
+ assert_not tag.valid?, "Key #{k} should be too long"
assert tag.errors[:k].any?
end
end
tag.changeset_id = 1
tag.k = "k"
tag.v = v
- assert !tag.valid?, "Value #{v} should be too long"
+ assert_not tag.valid?, "Value #{v} should be too long"
assert tag.errors[:v].any?
end
end
def test_empty_tag_invalid
tag = ChangesetTag.new
- assert !tag.valid?, "Empty tag should be invalid"
+ assert_not tag.valid?, "Empty tag should be invalid"
assert tag.errors[:changeset].any?
end