end
# Test a user who has been blocked
+ create(:user_block, :user => users(:blocked_user))
get :view, :display_name => "blocked"
assert_response :success
assert_select "div#userinformation" do
end
# Test a moderator who has applied blocks
+ create(:user_block, :creator => users(:moderator_user))
get :view, :display_name => "moderator"
assert_response :success
assert_select "div#userinformation" do
# Get users to work with
user = users(:normal_user)
friend = users(:public_user)
- create(:friend, :user_id => user.id, :friend_user_id => friend.id)
+ create(:friend, :befriender => user, :befriendee => friend)
# Check that the users are friends
assert Friend.where(:user_id => user.id, :friend_user_id => friend.id).first