Specs draft
This commit is contained in:
parent
7404b2c696
commit
639c542aaf
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue