closes #3088
[arvados.git] / apps / workbench / test / functional / collections_controller_test.rb
index fb80f8874ec0346d735e2c0c31b400fc04696423..babe4fbf931542b7dc0c46d79afbb6874b8d198e 100644 (file)
@@ -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)