Sha256: 880a6a3d15f9400969448e61f1a783d8aa1f46da023ccd6d1633dfc292086de8
Contents?: true
Size: 777 Bytes
Versions: 2
Compression:
Stored size: 777 Bytes
Contents
require File.join(File.dirname(__FILE__), 'support', 'spec_helper') require 'albacore/command' require 'rake/commandtask' require 'tasklib_patch' describe Albacore::CommandTask, "when running" do before :all do task = Albacore::CommandTask.new(:command) do |t| @yielded_object = t end task.extend(TasklibPatch) Rake::Task[:command].invoke end it "should yield the command api" do @yielded_object.kind_of?(Command).should == true end end describe Albacore::CommandTask, "when execution fails" do before :all do @task = Albacore::CommandTask.new(:failingtask) @task.extend(TasklibPatch) @task.fail Rake::Task["failingtask"].invoke end it "should fail the rake task" do @task.task_failed.should be_true end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
albacore-0.0.9 | spec/commandtask_spec.rb |
albacore-0.0.8 | spec/commandtask_spec.rb |