X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/014d7fdf7ce27777dae18588beb07e4e96625d26..5e9787f914dd1a2f762ae7a653fe8dda36f8f555:/apps/workbench/test/integration/download_test.rb diff --git a/apps/workbench/test/integration/download_test.rb b/apps/workbench/test/integration/download_test.rb index 1098240c96..6ae9f29274 100644 --- a/apps/workbench/test/integration/download_test.rb +++ b/apps/workbench/test/integration/download_test.rb @@ -1,14 +1,14 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + require 'integration_helper' require 'helpers/download_helper' class DownloadTest < ActionDispatch::IntegrationTest - include KeepWebConfig - @@wrote_test_data = false setup do - use_keep_web_config - # Make sure Capybara can download files. need_selenium 'for downloading', :selenium_with_download DownloadHelper.clear @@ -38,7 +38,7 @@ class DownloadTest < ActionDispatch::IntegrationTest end test "preview anonymous content from keep-web by #{id_type}" do - Rails.configuration.anonymous_user_token = + Rails.configuration.Users.AnonymousUserToken = api_fixture('api_client_authorizations')['anonymous']['api_token'] uuid_or_pdh = api_fixture('collections')['public_text_file'][id_type] @@ -51,7 +51,7 @@ class DownloadTest < ActionDispatch::IntegrationTest end test "download anonymous content from keep-web by #{id_type}" do - Rails.configuration.anonymous_user_token = + Rails.configuration.Users.AnonymousUserToken = api_fixture('api_client_authorizations')['anonymous']['api_token'] uuid_or_pdh = api_fixture('collections')['public_text_file'][id_type]