Sha256: ff950b5bd1b5bb75b40e66798c1cfcffb5843a5f927b217137998f93acc87f7b

Contents?: true

Size: 509 Bytes

Versions: 4

Compression:

Stored size: 509 Bytes

Contents

# encoding: UTF-8

require "spec_helper"

describe Tetra::Tar do
  include Tetra::Mockers

  let(:zipfile) { File.join("spec", "data", "commons-collections4-4.1-src.tar.gz") }
  let(:tar) { Tetra::Tar.new }

  describe "#decompress"  do
    it "decompresses a file in a directory" do
      Dir.mktmpdir do |dir|
        tar.decompress(zipfile, dir)

        files = Find.find(dir).to_a

        expect(files).to include("#{dir}/commons-collections4-4.1-src/DEVELOPERS-GUIDE.html")
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tetra-2.0.5 spec/lib/fine/tar_spec.rb
tetra-2.0.4 spec/lib/fine/tar_spec.rb
tetra-2.0.3 spec/lib/fine/tar_spec.rb
tetra-2.0.2 spec/lib/fine/tar_spec.rb