assert_equal([['.', 'foo', 3]], assigns(:object).files)
end
- test "viewing a collection fetches related folders" do
+ test "viewing a collection fetches related projects" do
show_collection(:foo_file, :active)
- assert_includes(assigns(:folders).map(&:uuid),
- api_fixture('groups')['afolder']['uuid'],
- "controller did not find linked folder")
+ assert_includes(assigns(:projects).map(&:uuid),
+ api_fixture('groups')['aproject']['uuid'],
+ "controller did not find linked project")
end
test "viewing a collection fetches related permissions" do
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)