X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f381ff6fb2411c0edf0aa709860a26c72b6c9d18..c53b3ceec5a340b3651fdf683c71c03dd1449e90:/test/models/user_preference_test.rb 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