spec/integration/resume_download_spec.rb in rmega-0.2.5 vs spec/integration/resume_download_spec.rb in rmega-0.2.6
- old
+ new
@@ -6,10 +6,11 @@
let(:download_url) { 'https://mega.nz/#!oAhCnBKR!CPeG8X92nBjvFsBF9EprZNW_TqIUwItHMkF9G2IZEIo' }
let(:destination_file) { "#{temp_folder}/temp.txt" }
before do
- Thread.abort_on_exception = false
+ Thread.abort_on_exception = false if Thread.respond_to?(:abort_on_exception)
+ Thread.report_on_exception = false if Thread.respond_to?(:report_on_exception)
allow_any_instance_of(Pool).to receive(:threads_raises_exceptions).and_return(nil)
end
it 'resume a download of a file' do
node = Nodes::Factory.build_from_url(download_url)