Sha256: 97fcd49dc3dbfaf10fc03af45a721bb202ca28c0035d4ae075604f2245983a1a
Contents?: true
Size: 763 Bytes
Versions: 21
Compression:
Stored size: 763 Bytes
Contents
require 'rubygems' require 'log4r' require 'tmpdir' require_relative '../lib/depengine/processor/zip' require_relative '../lib/depengine/log/log' $log = Log::DeploymentLogger.new $log.writer.level = Log4r::ERROR describe "the zipper" do include Processor it "should extract all files from an archive" do tmp_dir = Dir.mktmpdir begin unzip_file(File.join(File.dirname(__FILE__),'zip/source/dummy.zip'), tmp_dir) File.file?(File.join(tmp_dir,'dummy1')).should be_true File.file?(File.join(tmp_dir,'dummy2')).should be_true File.file?(File.join(tmp_dir,'dummy3')).should be_true File.file?(File.join(tmp_dir,'sub1/sub2/sub3/dummy4')).should be_true ensure FileUtils.remove_entry tmp_dir end end end
Version data entries
21 entries across 21 versions & 1 rubygems
Version | Path |
---|---|
depengine-3.0.0 | spec/zip_spec.rb |