]> git.openstreetmap.org Git - rails.git/blobdiff - test/unit/user_test.rb
utf-8 wide-char testing of message title - this will come in useful for other things...
[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