X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/53aa7259bb0612eb48a17d0b954ad71ea37d87a4..fac69da076152ea848bd07df9fd09a40744ff2fd:/test/models/user_preference_test.rb?ds=sidebyside diff --git a/test/models/user_preference_test.rb b/test/models/user_preference_test.rb index 2f5e16b18..ee91777c7 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" @@ -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