Sha256: 8a95aab16ebefc30dffbd3c9c6a4424fd78cad1bb046883db7310eebd2f31bd7
Contents?: true
Size: 479 Bytes
Versions: 1
Compression:
Stored size: 479 Bytes
Contents
require_relative 'minitest_helper' class TestExtractorIntegration < MiniTest::Unit::TestCase def teardown FileUtils.rm_r(Dir.glob("#{cleanup_path}*")) end def extractor(path = "#{samples_path}/tar_with_directory.tar") @extractor ||= Swathe::Tar.open(path).extractor end def cleanup_path "#{Swathe.project_root}/tmp/" end def test_write_file extractor.extract('samples/file.txt', 'tmp/') assert File.exists?("tmp/samples/file.txt") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
swathe-0.0.1 | test/extractor_test.rb |