]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/changesets_controller_test.rb
Refactor friendships controller and model
[rails.git] / test / controllers / changesets_controller_test.rb
index a486e4b5ee87f98f955fe1de82d5647ec93d4cc1..9bbca2ab170c7e0cfecd8b2536d8e96c446cb12a 100644 (file)
@@ -190,8 +190,8 @@ class ChangesetsControllerTest < ActionDispatch::IntegrationTest
   # Checks the display of the friends changesets listing
   def test_index_friends
     private_user = create(:user, :data_public => true)
-    friendship = create(:friendship, :befriender => private_user)
-    changeset = create(:changeset, :user => friendship.befriendee, :num_changes => 1)
+    follow = create(:follow, :follower => private_user)
+    changeset = create(:changeset, :user => follow.following, :num_changes => 1)
     _changeset2 = create(:changeset, :user => create(:user), :num_changes => 1)
 
     get friend_changesets_path