X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/94b59f440321846760d430fee378f05a6a2803ee..9bb494d9eacba2a208dd1eb9759b910c7fbeaf71:/test/controllers/changesets_controller_test.rb diff --git a/test/controllers/changesets_controller_test.rb b/test/controllers/changesets_controller_test.rb index fad7a97d8..e754e32b7 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 ## @@ -214,7 +214,7 @@ class ChangesetsControllerTest < ActionController::TestCase get :feed, :params => { :format => :atom } assert_response :success assert_template "index" - assert_equal "application/atom+xml", response.content_type + assert_equal "application/atom+xml", response.media_type check_feed_result([changeset, closed_changeset]) end @@ -232,7 +232,7 @@ class ChangesetsControllerTest < ActionController::TestCase get :feed, :params => { :format => :atom, :bbox => "4.5,4.5,5.5,5.5" } assert_response :success assert_template "index" - assert_equal "application/atom+xml", response.content_type + assert_equal "application/atom+xml", response.media_type check_feed_result([changeset, closed_changeset]) end @@ -250,7 +250,7 @@ class ChangesetsControllerTest < ActionController::TestCase assert_response :success assert_template "index" - assert_equal "application/atom+xml", response.content_type + assert_equal "application/atom+xml", response.media_type check_feed_result(changesets) end