Sha256: d61215bb67d843f665a3704c574bd6ffb68ec6c6c60fd5b110364a3df2cd366c
Contents?: true
Size: 843 Bytes
Versions: 1
Compression:
Stored size: 843 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() 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
albacore-0.0.7 | spec/expandtemplatestask_spec.rb |