Specs draft
This commit is contained in:
parent
7404b2c696
commit
639c542aaf
14
spec/rake/task_spec.rb
Normal file
14
spec/rake/task_spec.rb
Normal 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
|
12
spec/rake_control/wrapper_spec.rb
Normal file
12
spec/rake_control/wrapper_spec.rb
Normal 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
|
Loading…
x
Reference in New Issue
Block a user