X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/0100cfe304954c42305b58e7857fb9de81808267..12a7c9d023bcca01657e357b2ed28cc6bcd20e06:/test/models/user_preference_test.rb diff --git a/test/models/user_preference_test.rb b/test/models/user_preference_test.rb index 2f5e16b18..3df38aa6f 100644 --- a/test/models/user_preference_test.rb +++ b/test/models/user_preference_test.rb @@ -20,7 +20,7 @@ class UserPreferenceTest < ActiveSupport::TestCase up.user = create(:user) up.k = key * i up.v = val * i - assert up.valid? + assert_predicate up, :valid? assert up.save! resp = UserPreference.find(up.id) assert_equal key * i, resp.k, "User preference with #{i} #{key} chars (i.e. #{key.length * i} bytes) fails"