Merge branch 'master' into 4904-arv-web
[arvados.git] / apps / workbench / test / integration / repositories_test.rb
index 5648c71be9efd3a131572da25a428b79b387a648..1e1a118a7a5ec6d8e9610c3d244ddd9a7bafd0dd 100644 (file)
@@ -15,8 +15,7 @@ class RepositoriesTest < ActionDispatch::IntegrationTest
     test "#{user} can manage sharing for another user" do
       add_user = api_fixture('users')['future_project_user']
       new_name = ["first_name", "last_name"].map { |k| add_user[k] }.join(" ")
-
-      show_repository_using(user, 'foo')
+      show_object_using(user, 'repositories', 'foo', 'push_url')
       click_on "Sharing"
       add_share_and_check("users", new_name, add_user)
       modify_share_and_check(new_name)
@@ -29,8 +28,7 @@ class RepositoriesTest < ActionDispatch::IntegrationTest
   ].each do |user|
     test "#{user} can manage sharing for another group" do
       new_name = api_fixture('groups')['future_project_viewing_group']['name']
-
-      show_repository_using("active", 'foo')
+      show_object_using(user, 'repositories', 'foo', 'push_url')
       click_on "Sharing"
       add_share_and_check("groups", new_name)
       modify_share_and_check(new_name)
@@ -38,7 +36,7 @@ class RepositoriesTest < ActionDispatch::IntegrationTest
   end
 
   test "spectator does not see repository sharing tab" do
-    show_repository_using("spectator")
+    show_object_using("spectator", 'repositories', 'arvados', 'push_url')
     assert(page.has_no_link?("Sharing"),
            "read-only repository user sees sharing tab")
   end