Sha256: e5c34c1119a28fe0f282a138dcac6b5b9559cf8437d0941febef162e5c9e07ed
Contents?: true
Size: 700 Bytes
Versions: 4
Compression:
Stored size: 700 Bytes
Contents
require File.join(File.dirname(__FILE__), 'support', 'spec_helper') require 'albacore/renamer' require 'rake/renametask' require 'fail_patch' describe "when running" do before :all do rename :rename do |t| t.extend(FailPatch) @yielded_object = t end Rake::Task[:rename].invoke end it "should yield the rename api" do @yielded_object.kind_of?(Renamer).should be_true end end describe "when execution fails" do before :all do rename :rename_fail do |t| t.extend(FailPatch) t.fail end Rake::Task[:rename_fail].invoke end it "should fail the rake task" do $task_failed.should == true end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
albacore-0.1.5 | spec/renametask_spec.rb |
albacore-0.1.4 | spec/renametask_spec.rb |
albacore-0.1.3 | spec/renametask_spec.rb |
albacore-0.1.2 | spec/renametask_spec.rb |