]> git.openstreetmap.org Git - rails.git/blobdiff - test/models/user_preference_test.rb
Merge remote-tracking branch 'openstreetmap/pull/1469'
[rails.git] / test / models / user_preference_test.rb
index c61bd607dcce10e92e5ab7c85ccb38cf22cf84d4..6f09d21c44f52b73a1e6408f1b6b0e0bd2ab008a 100644 (file)
@@ -7,7 +7,7 @@ class UserPreferenceTest < ActiveSupport::TestCase
   def test_add_duplicate_preference
     up = create(:user_preference)
     new_up = UserPreference.new
-    new_up.user = users(:normal_user)
+    new_up.user = up.user
     new_up.k = up.k
     new_up.v = "some other value"
     assert_not_equal new_up.v, up.v