X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ef7f3d800cbdd49b692df10d312e5fd880e2e938..cf4cfc530ae54abee7b6a0dccbc9d4603ab35611:/test/models/tracetag_test.rb diff --git a/test/models/tracetag_test.rb b/test/models/tracetag_test.rb index 0ad8cae2f..a13d41e4a 100644 --- a/test/models/tracetag_test.rb +++ b/test/models/tracetag_test.rb @@ -1,4 +1,4 @@ -require 'test_helper' +require "test_helper" class TracetagTest < ActiveSupport::TestCase api_fixtures @@ -10,15 +10,15 @@ class TracetagTest < ActiveSupport::TestCase def test_validations tracetag_valid({}) tracetag_valid({ :tag => nil }, false) - tracetag_valid({ :tag => '' }, false) - tracetag_valid(:tag => 'a') - tracetag_valid(:tag => 'a' * 255) - tracetag_valid({ :tag => 'a' * 256 }, false) - tracetag_valid({ :tag => 'a/b' }, false) - tracetag_valid({ :tag => 'a;b' }, false) - tracetag_valid({ :tag => 'a.b' }, false) - tracetag_valid({ :tag => 'a,b' }, false) - tracetag_valid({ :tag => 'a?b' }, false) + tracetag_valid({ :tag => "" }, false) + tracetag_valid(:tag => "a") + tracetag_valid(:tag => "a" * 255) + tracetag_valid({ :tag => "a" * 256 }, false) + tracetag_valid({ :tag => "a/b" }, false) + tracetag_valid({ :tag => "a;b" }, false) + tracetag_valid({ :tag => "a.b" }, false) + tracetag_valid({ :tag => "a,b" }, false) + tracetag_valid({ :tag => "a?b" }, false) end private