X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/15b104f4ff4614aa78c01180b6a9b89dd5a1400f..a2c1fe793002595049694936b7ff9e46e8d1befb:/test/models/user_preference_test.rb?ds=inline diff --git a/test/models/user_preference_test.rb b/test/models/user_preference_test.rb index bceec0719..952289d94 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_equal false, up.valid? + assert_not up.valid? assert_raise(ActiveRecord::RecordInvalid) { up.save! } end end