spec/integration/resume_download_spec.rb in rmega-0.3.1 vs spec/integration/resume_download_spec.rb in rmega-0.3.2
- old
+ new
@@ -19,10 +19,10 @@
thread = Thread.new do
node.download(destination_file)
end
loop do
- next unless File.exists?(destination_file)
+ next unless File.exist?(destination_file)
content = nil
node.file_io_synchronize { content = File.read(destination_file) }
break if content.force_encoding("BINARY").strip.size > 2_000_000
sleep(0.1)
end