Sha256: 7e2a07817dfcaff5e087bbcf49cf0947e08c72d2559df27cce732dcad8806e9e
Contents?: true
Size: 475 Bytes
Versions: 1
Compression:
Stored size: 475 Bytes
Contents
require 'integration_spec_helper' describe 'Folder download' do context 'given a public mega url (folder)' do let(:url) { 'https://mega.co.nz/#F!IYERlQqa!pvqkX7UUsRGKBs3FWKXzUQ' } 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rmega-0.2.0 | spec/integration/folder_download_spec.rb |