X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1778fa3d9c25ae1a98386d3dcbb426eda5e62fbf..c5fc9f0e7e93088c599ae0d8540ee0117f277d6d:/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 ##