X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6892ccd0155b431cc567b4744b1e2759df3e8c68..3a8a997fb86219e2e11dc76c837d5a237db80019:/test/models/user_preference_test.rb diff --git a/test/models/user_preference_test.rb b/test/models/user_preference_test.rb index 3df38aa6f..ee91777c7 100644 --- a/test/models/user_preference_test.rb +++ b/test/models/user_preference_test.rb @@ -36,7 +36,7 @@ class UserPreferenceTest < ActiveSupport::TestCase up.user = create(:user) up.k = key * i up.v = val * i - assert_not up.valid? + assert_not_predicate up, :valid? assert_raise(ActiveRecord::RecordInvalid) { up.save! } end end