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

Version Path
agile_utils-0.3.2 test/lib/agile_utils/test_file_util.rb
agile_utils-0.3.1 test/lib/agile_utils/test_file_util.rb
agile_utils-0.3.0 test/lib/agile_utils/test_file_util.rb
agile_utils-0.2.3 test/lib/agile_utils/test_file_util.rb
agile_utils-0.2.2 test/lib/agile_utils/test_file_util.rb
agile_utils-0.2.1 test/lib/agile_utils/test_file_util.rb
agile_utils-0.2.0 test/lib/agile_utils/test_file_util.rb
agile_utils-0.1.5 test/lib/agile_utils/test_file_util.rb
agile_utils-0.1.4 test/lib/agile_utils/test_file_util.rb
agile_utils-0.1.3 test/lib/agile_utils/test_file_util.rb
agile_utils-0.1.2 test/lib/agile_utils/test_file_util.rb