Sha256: 551e32cdf396ecd377c3c4ab711b4506afef748277acbe435d29df02124e23d3
Contents?: true
Size: 859 Bytes
Versions: 2
Compression:
Stored size: 859 Bytes
Contents
require File.join(File.dirname(__FILE__), 'support', 'spec_helper') require 'albacore/expandtemplates' require 'rake/expandtemplatestask' require 'tasklib_patch' describe Albacore::ExpandTemplatesTask, "when running" do before :each do task = Albacore::ExpandTemplatesTask.new(:expandtemplates) do |t| @yielded_object = t end task.extend(TasklibPatch) Rake::Task[:expandtemplates].invoke end it "should yield the expand template api" do @yielded_object.kind_of?(ExpandTemplates).should == true end end describe Albacore::ExpandTemplatesTask, "when execution fails" do before :each do @task = Albacore::ExpandTemplatesTask.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/expandtemplatestask_spec.rb |
albacore-0.0.8 | spec/expandtemplatestask_spec.rb |