get :view, :display_name => "blocked"
assert_response :success
assert_select "div#userinformation" do
get :view, :display_name => "blocked"
assert_response :success
assert_select "div#userinformation" do
get :view, :display_name => "moderator"
assert_response :success
assert_select "div#userinformation" do
get :view, :display_name => "moderator"
assert_response :success
assert_select "div#userinformation" do
# Check that the users are friends
assert Friend.where(:user_id => user.id, :friend_user_id => friend.id).first
# Check that the users are friends
assert Friend.where(:user_id => user.id, :friend_user_id => friend.id).first