Sha256: f66665955551e458265b8db4ecdea3c2703db2a5383852a6342cf92deffd9385
Contents?: true
Size: 819 Bytes
Versions: 2
Compression:
Stored size: 819 Bytes
Contents
require File.join(File.dirname(__FILE__), 'support', 'spec_helper') require 'albacore/zipdirectory' require 'rake/ziptask' require 'tasklib_patch' describe Albacore::ZipTask, "when running" do before :all do task = Albacore::ZipTask.new(:zip) do |t| t.output_file = 'test.zip' @yielded_object = t end task.extend(TasklibPatch) Rake::Task[:zip].invoke end it "should yield the zip api" do @yielded_object.kind_of?(ZipDirectory).should be_true end end describe Albacore::ZipTask, "when execution fails" do before :all do @task = Albacore::ZipTask.new(:failingtask) @task.extend(TasklibPatch) Rake::Task["failingtask"].invoke @task.fail end it "should fail the rake task" do @task.task_failed.should == true end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
albacore-0.1.1 | spec/ziptask_spec.rb |
albacore-0.1.0 | spec/ziptask_spec.rb |