Sha256: 7ebaf012a2072d0566a9bddc89d79fb26baa8b7d4888dca61a0d2d536191ac00
Contents?: true
Size: 646 Bytes
Versions: 11
Compression:
Stored size: 646 Bytes
Contents
require_relative "../../test_helper" require "fileutils" describe AgileUtils do context "#tar_gzip_files" do before do FileUtils.rm_rf("test/fixtures/output.tar.gz") @files = AgileUtils::FileUtil.find("test/fixtures/outputs", "xhtml") end after do FileUtils.rm_rf("test/fixtures/output.tar.gz") end it "compresses list of files" do refute File.exist?("test/fixtures/output.tar.gz"), "Output file must not exist" AgileUtils::FileUtil.tar_gzip_files(@files, "test/fixtures/output.tar.gz") assert File.exist?("test/fixtures/output.tar.gz"), "Output file must be generated" end end end
Version data entries
11 entries across 11 versions & 1 rubygems