X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/eab2eeaa47b2aa8c7f52371f9bfdd60711a41fb6..34e3e51456774127d43408b7ab65c24f41373f62:/test/models/user_preference_test.rb diff --git a/test/models/user_preference_test.rb b/test/models/user_preference_test.rb index 4d485b276..2cadac3e8 100644 --- a/test/models/user_preference_test.rb +++ b/test/models/user_preference_test.rb @@ -22,7 +22,7 @@ class UserPreferenceTest < ActiveSupport::TestCase assert_not_equal newUP.v, up.v assert_raise (ActiveRecord::RecordNotUnique) {newUP.save} end - + def test_check_valid_length key = "k" val = "v" @@ -38,7 +38,7 @@ class UserPreferenceTest < ActiveSupport::TestCase assert_equal val*i, resp.v, "User preference with #{i} #{val} chars (i.e. #{val.length*i} bytes) fails" end end - + def test_check_invalid_length key = "k" val = "v"