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.20 spec/zip_spec.rb
depengine-3.0.19 spec/zip_spec.rb
depengine-3.0.18 spec/zip_spec.rb
depengine-3.0.17 spec/zip_spec.rb
depengine-3.0.16 spec/zip_spec.rb
depengine-3.0.15 spec/zip_spec.rb
depengine-3.0.14 spec/zip_spec.rb
depengine-3.0.13 spec/zip_spec.rb
depengine-3.0.12 spec/zip_spec.rb
depengine-3.0.11 spec/zip_spec.rb
depengine-3.0.10 spec/zip_spec.rb
depengine-3.0.9 spec/zip_spec.rb
depengine-3.0.8 spec/zip_spec.rb
depengine-3.0.7 spec/zip_spec.rb
depengine-3.0.6 spec/zip_spec.rb
depengine-3.0.5 spec/zip_spec.rb
depengine-3.0.4 spec/zip_spec.rb
depengine-3.0.3 spec/zip_spec.rb
depengine-3.0.2 spec/zip_spec.rb
depengine-3.0.1 spec/zip_spec.rb