Merge branch '19954-permission-dedup-doc'
[arvados.git] / apps / workbench / test / helpers / share_object_helper.rb
index 0266388b7721e136a0668d215006274fc0da050d..e31f196498d47a3963d108d01873ba1799c323d7 100644 (file)
@@ -1,3 +1,7 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
 module ShareObjectHelper
   def show_object_using(auth_key, type, key, expect)
     obj_uuid = api_fixture(type)[key]['uuid']
@@ -67,7 +71,7 @@ module ShareObjectHelper
   end
 
   def user_can_manage(user_sym, fixture)
-    get(:show, {id: fixture["uuid"]}, session_for(user_sym))
+    get(:show, params: {id: fixture["uuid"]}, session: session_for(user_sym))
     is_manager = assigns(:user_is_manager)
     assert_not_nil(is_manager, "user_is_manager flag not set")
     if not is_manager