Sha256: b1d25a38a1b00e863ff1a48633a2cc00d71e4a9bd57f1691df37d85d359616d0
Contents?: true
Size: 620 Bytes
Versions: 1
Compression:
Stored size: 620 Bytes
Contents
require_relative '../test-util' describe "Pione::Component::PackageArchiver" do before do @path = TestUtil::Package.get("TestPackage1") end it "should create archive file" do out = Location[Temppath.mkdir] Component::PackageArchiver.new(@path).archive(out) # easy check pkg = out + "TestPackage1+v0.1.0.ppg" pkg.should.exist pkg.should.file pkg.size.should > 0 # structure check Zip::Archive.open(pkg.path.to_s) do |ar| ar.each do |file| unless file.directory? file.read.should == (@path + file.name).read end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pione-0.2.2 | test/component/spec_package-archiver.rb |