# 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
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
##
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
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
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