]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/users_controller_test.rb
Show friend options only when user is logged in
[rails.git] / test / controllers / users_controller_test.rb
index cff52cff25a24fc2ff3ccf251c3b533b6ba94ce5..4f4edf10b034a82ad562b995bbb5328ab6db0382 100644 (file)
@@ -325,9 +325,6 @@ class UsersControllerTest < ActionDispatch::IntegrationTest
       assert_select "a[href='/blocks/new/#{ERB::Util.u(user.display_name)}']", 0
     end
 
       assert_select "a[href='/blocks/new/#{ERB::Util.u(user.display_name)}']", 0
     end
 
-    # Friends shouldn't be visible as we're not logged in
-    assert_select "div#friends-container", :count => 0
-
     # Test a user who has been blocked
     blocked_user = create(:user)
     create(:user_block, :user => blocked_user)
     # Test a user who has been blocked
     blocked_user = create(:user)
     create(:user_block, :user => blocked_user)