X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1778fa3d9c25ae1a98386d3dcbb426eda5e62fbf..16c3c533022d90cbfafecd17349d09fcbb7abed9:/test/controllers/changesets_controller_test.rb diff --git a/test/controllers/changesets_controller_test.rb b/test/controllers/changesets_controller_test.rb index fad7a97d8..caf7721cd 100644 --- a/test/controllers/changesets_controller_test.rb +++ b/test/controllers/changesets_controller_test.rb @@ -130,8 +130,8 @@ class ChangesetsControllerTest < ActionController::TestCase # Checks the display of the friends changesets listing def test_index_friends private_user = create(:user, :data_public => true) - friend = create(:friend, :befriender => private_user) - create(:changeset, :user => friend.befriendee) + friendship = create(:friendship, :befriender => private_user) + create(:changeset, :user => friendship.befriendee) get :index, :params => { :friends => true } assert_response :redirect @@ -147,7 +147,7 @@ class ChangesetsControllerTest < ActionController::TestCase assert_response :success assert_template "index" - check_index_result(Changeset.where(:user => private_user.friend_users.identifiable)) + check_index_result(Changeset.where(:user => private_user.friends.identifiable)) end ##