11870: update tests to be compatible with the user menu repositories link change.
[arvados.git] / apps / workbench / test / controllers / users_controller_test.rb
index 6b9cd6efa647edd391d78ff79a6e8bbd429348c9..56096d962a1a705f9f4da406d9d30d9dfe0492e9 100644 (file)
@@ -31,28 +31,6 @@ class UsersControllerTest < ActionController::TestCase
     assert_match /\/users\/welcome/, @response.redirect_url
   end
 
-  test "show repositories with read, write, or manage permission" do
-    get :manage_account, {}, session_for(:active)
-    assert_response :success
-    repos = assigns(:my_repositories)
-    assert repos
-    assert_not_empty repos, "my_repositories should not be empty"
-    editables = repos.collect { |r| !!assigns(:repo_writable)[r.uuid] }
-    assert_includes editables, true, "should have a writable repository"
-    assert_includes editables, false, "should have a readonly repository"
-  end
-
-  test "show repositories lists linked as well as owned repositories" do
-    get :manage_account, {}, session_for(:active)
-    assert_response :success
-    repos = assigns(:my_repositories)
-    assert repos
-    repo_writables = assigns(:repo_writable)
-    assert_not_empty repo_writables, "repo_writables should not be empty"
-    assert_includes repo_writables, api_fixture('repositories')['repository4']['uuid']  # writable by active
-    assert_includes repo_writables, api_fixture('repositories')['repository2']['uuid']  # owned by active
-  end
-
   test "request shell access" do
     user = api_fixture('users')['spectator']