class WayTagTest < ActiveSupport::TestCase
def test_length_key_valid
tag = create(:way_tag)
- (0..255).each do |i|
+ [0, 255].each do |i|
tag.k = "k" * i
assert tag.valid?
end
def test_length_value_valid
tag = create(:way_tag)
- (0..255).each do |i|
+ [0, 255].each do |i|
tag.v = "v" * i
assert tag.valid?
end