X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/91dc5f1d7f5ad9eb2640f6089e2d0476cbf87c8e..74fec3cd8284eae4829dad2c287588d52c621c4b:/apps/workbench/test/helpers/share_object_helper.rb diff --git a/apps/workbench/test/helpers/share_object_helper.rb b/apps/workbench/test/helpers/share_object_helper.rb index 0266388b77..e31f196498 100644 --- a/apps/workbench/test/helpers/share_object_helper.rb +++ b/apps/workbench/test/helpers/share_object_helper.rb @@ -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