X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5cbd4038edb32b0304bd766e70fc680ea447b52b..dc2a2c8ebd1a11e4a64555fda22c6859a51defff:/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