Sha256: 714df93f475e6a4d1da15e9d01fedad3a879dcb9531ab0e72f8bce6237e9868a

Contents?: true

Size: 1.13 KB

Versions: 2

Compression:

Stored size: 1.13 KB

Contents

#
# h2. test/imw/model/files/zip_spec.rb -- tests of zip file
#
# == About
#
# RSpec tests for <tt>IMW::Files::Zip</tt> class.
#
# 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/archive_spec'

require 'imw/model/files/zip'
describe IMW::Files::Zip do

  before(:all) do
    @root_directory       = ::IMW::DIRECTORIES[:dump] + "/archive_test"
    @initial_directory    = @root_directory + "/create_and_append/initial"
    @appending_directory  = @root_directory + "/create_and_append/appending"
    @extraction_directory = ::IMW::DIRECTORIES[:dump] + "/extract"
    @archive = IMW::Files::Zip.new(@root_directory + "/test.zip")
  end

  it_should_behave_like "an archive of files"

end

# puts "#{File.basename(__FILE__)}: No matter how many times you test the integrity of a zipper at the store before you buy something it /will/ break when you take it home!" # at bottom

Version data entries

2 entries across 2 versions & 1 rubygems

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