]> git.openstreetmap.org Git - rails.git/blobdiff - test/models/user_preference_test.rb
Merge remote-tracking branch 'upstream/pull/2597'
[rails.git] / test / models / user_preference_test.rb
index bceec0719718bdb36048ee7315f26159a942c028..952289d940d20a30cf32df656c70bfb8ea0ccbfc 100644 (file)
@@ -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