X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a959f21c8147f26362df392bc3fd3290db69de85..f0ab1bd48f45470ffb6fefafa713c51347f5a194:/apps/workbench/test/functional/collections_controller_test.rb diff --git a/apps/workbench/test/functional/collections_controller_test.rb b/apps/workbench/test/functional/collections_controller_test.rb index fb80f8874e..babe4fbf93 100644 --- a/apps/workbench/test/functional/collections_controller_test.rb +++ b/apps/workbench/test/functional/collections_controller_test.rb @@ -98,6 +98,14 @@ class CollectionsControllerTest < ActionController::TestCase assert_no_session end + test "reader token Collection links end with trailing slash" do + # Testing the fix for #2937. + show_collection(:foo_file, :active_trustedclient) + post(:share, collection_params(:foo_file)) + assert(@controller.download_link.ends_with? '/', + "Collection share link does not end with slash for wget") + end + test "getting a file from Keep" do params = collection_params(:foo_file, 'foo') sess = session_for(:active)