require "test_helper"
class OldRelationTagTest < ActiveSupport::TestCase
- api_fixtures
-
def test_length_key_valid
tag = create(:old_relation_tag)
(0..255).each do |i|
tag.k = existing.k
tag.v = existing.v
assert tag.new_record?
- assert !tag.valid?
+ assert_not tag.valid?
assert_raise(ActiveRecord::RecordInvalid) { tag.save! }
assert tag.new_record?
end