Sha256: 7deef0be24726d65d3278a76ccdb26713f454f98256c3f02a54e7598901b08f6

Contents?: true

Size: 960 Bytes

Versions: 2

Compression:

Stored size: 960 Bytes

Contents

#
# h2. spec/imw/model/files/gz_spec.rb -- spec for gz files
#
# == About
#
# RSpec code for <tt>IMW::Files::Gz</tt>.
#
# Author::    (Philip flip Kromer, Dhruv Bansal) for Infinite Monkeywrench Project (mailto:coders@infochimps.org)
# Copyright:: Copyright (c) 2008 infochimps.org
# License::   GPL 3.0
# Website::   http://infinitemonkeywrench.org/
#
require File.join(File.dirname(__FILE__),'../../../spec_helper')
require IMW_SPEC_DIR+'/imw/model/files/compressed_file_spec'

require 'imw/utils'
require 'imw/model/files/gz'
describe IMW::Files::Gz do

  before(:all) do
    @root_directory = IMW::DIRECTORIES[:dump] + "/gz_spec"

    @path = @root_directory + "/file.txt.gz"
    @file = IMW::Files::Gz.new(@path)

    @copy_of_original_path = @root_directory + "/file_copy.txt.gz"
  end

  it_should_behave_like "a compressed file"
end

# puts "#{File.basename(__FILE__)}: You squeeze yourself and your Monkeywrench through a narrow opening." # at bottom

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
imw-0.1.1 spec/imw/files/gz_spec.rb
imw-0.1.0 spec/imw/files/gz_spec.rb