Sha256: 06055169652bb5cebc63b45c6d982ece5f8daa8131fd9c698f7ab29a36fd42b0
Contents?: true
Size: 1.05 KB
Versions: 20
Compression:
Stored size: 1.05 KB
Contents
require "fileutils" require "minitest/autorun" require "#{File.expand_path(File.dirname(__FILE__))}/../lib/traquitana.rb" describe Traquitana::Packager do before do @packager = Traquitana::Packager.new(File.expand_path(File.dirname(__FILE__))+"/config/") end it "should have an id method" do @packager.must_respond_to(:id) end it "should return an id" do @packager.id.wont_be_nil end it "should have a list file method" do @packager.must_respond_to(:list_file) end it "should return the correct list file name" do id = @packager.id @packager.list_file.must_equal @packager.id+".list" end it "should have a zip file method" do @packager.must_respond_to(:zip_file) end it "should return the correct zip file name" do id = @packager.id @packager.zip_file.must_equal @packager.id+".zip" end it "should have a pack method" do @packager.must_respond_to(:pack) end it "should return the list and package file" do list, package = @packager.pack end end
Version data entries
20 entries across 20 versions & 1 rubygems