spec/integration/folder_download_spec.rb in rmega-0.2.7 vs spec/integration/folder_download_spec.rb in rmega-0.3.1
- old
+ new
@@ -2,16 +2,16 @@
describe 'Folder download' do
context 'given a public mega url (folder)' do
- let(:url) { 'https://mega.nz/#F!oQYEUaBD!QtYCjQDbBzefFeIM994FIg' }
+ let(:url) { 'https://mega.nz/folder/GvgkUIIK#v2hd_5GSvciGKazNeWSa6A' }
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/", "")
+ list = Dir["#{temp_folder}/another_test_folder/**/*"].map do |p|
+ p.gsub("#{temp_folder}/another_test_folder/", "")
end
- expect(list.sort).to eq(["a.txt", "b.txt", "c", "c/c.txt"])
+ expect(list.sort).to eq(["b.txt", "c", "c/c.txt"])
end
end
end