Sha256: e838792868d1fe499ac9f0280a5a75f2cf93385b7bfa96486c985d217fb82e39
Contents?: true
Size: 780 Bytes
Versions: 2
Compression:
Stored size: 780 Bytes
Contents
require File.join(File.dirname(__FILE__), 'support', 'spec_helper') require 'albacore/exec' require 'rake/exectask' require 'tasklib_patch' describe Albacore::ExecTask, "when running" do before :all do task = Albacore::ExecTask.new(:exec) do |t| @yielded_object = t end task.extend(TasklibPatch) Rake::Task[:exec].invoke end it "should yield the exec api" do @yielded_object.kind_of?(Exec).should == true end end describe Albacore::ExecTask, "when execution fails" do before :all do @task = Albacore::ExecTask.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.1.1 | spec/exectask_spec.rb |
albacore-0.1.0 | spec/exectask_spec.rb |