1
0
Fork 0

Specs draft

This commit is contained in:
Gregory Eremin 2013-06-04 23:33:06 +04:00
parent 7404b2c696
commit 639c542aaf
2 changed files with 26 additions and 0 deletions

14
spec/rake/task_spec.rb Normal file
View File

@ -0,0 +1,14 @@
require 'spec_helper'
require 'ostruct'
describe Rake::Task do
describe '#execute' do
let(:dummy_task){ Rake::Task.new('dummy', OpenStruct.new) }
context 'for dummy task' do
subject{ dummy_task }
its(:methods){ should include :execute }
its(:methods){ should include :original_execute }
end
end
end

View File

@ -0,0 +1,12 @@
require 'spec_helper'
describe RakeControl::Wrapper do
before :all do
Rake::Task.define_task('dummy_task'){}
Rake::Task['dummy_task'].invoke
end
it 'should work' do
'YAY!'
end
end