fixing the test that was broken in the resync
authorShaun McDonald <shaun@shaunmcdonald.me.uk>
Thu, 25 Sep 2008 16:20:36 +0000 (16:20 +0000)
committerShaun McDonald <shaun@shaunmcdonald.me.uk>
Thu, 25 Sep 2008 16:20:36 +0000 (16:20 +0000)
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