Sha256: 2b1ab43dede91fba3bff76ac911aca14f5a8ed0a0ae8b94687e0d0913e4fe405
Contents?: true
Size: 472 Bytes
Versions: 6
Compression:
Stored size: 472 Bytes
Contents
require 'integration_spec_helper' describe 'Folder download' do context 'given a public mega url (folder)' do let(:url) { 'https://mega.nz/#F!oQYEUaBD!QtYCjQDbBzefFeIM994FIg' } it 'downloads the related file' do Rmega.download(url, temp_folder) list = Dir["#{temp_folder}/test_folder/**/*"].map do |p| p.gsub("#{temp_folder}/test_folder/", "") end expect(list.sort).to eq(["a.txt", "b.txt", "c", "c/c.txt"]) end end end
Version data entries
6 entries across 6 versions & 1 rubygems