]> git.openstreetmap.org Git - rails.git/blobdiff - test/unit/user_test.rb
Boolean correctness in migrations
[rails.git] / test / unit / user_test.rb
index 587fc71fbf78aaaff4b8881b0cdc4ba623299d59..486344fee3c4bcec4f273b3cd9d484e5f679258d 100644 (file)
@@ -120,8 +120,8 @@ class UserTest < Test::Unit::TestCase
     norm = users(:normal_user)
     sec = users(:second_user)
     friend = Friend.new
-    friend.user = norm
-    friend.friend_user_id = sec.id
+    friend.befriender = norm
+    friend.befriendee = sec
     friend.save
     assert_equal [sec], norm.nearby
     assert_equal 1, norm.nearby.size