Sha256: b767f9d6ec4cbc6c346d76d3de91dcba9b7ea3749672747715866078f897f9bf
Contents?: true
Size: 483 Bytes
Versions: 2
Compression:
Stored size: 483 Bytes
Contents
require 'integration_spec_helper' describe 'Folder download' do context 'given a public mega url (folder)' do let(:url) { 'https://mega.nz/folder/GvgkUIIK#v2hd_5GSvciGKazNeWSa6A' } it 'downloads the related file' do Rmega.download(url, temp_folder) list = Dir["#{temp_folder}/another_test_folder/**/*"].map do |p| p.gsub("#{temp_folder}/another_test_folder/", "") end expect(list.sort).to eq(["b.txt", "c", "c/c.txt"]) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rmega-0.3.2 | spec/integration/folder_download_spec.rb |
rmega-0.3.1 | spec/integration/folder_download_spec.rb |