]> git.openstreetmap.org Git - rails.git/blobdiff - test/models/user_preference_test.rb
Merge pull request #4133 from AntonKhorev/flex-leaflet-controls
[rails.git] / test / models / user_preference_test.rb
index 2f5e16b18f47703b1b827b0bf0a33e296dd62623..3df38aa6fe75796ca1bc8e38c88f83a3a4542b46 100644 (file)
@@ -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"