Move Task::DSL#condition specs to better location

This commit is contained in:
Thibault Jouan 2013-12-19 22:28:33 +00:00
parent 921fc8d3f9
commit 5fd4f3b371

View File

@ -72,6 +72,15 @@ module Producer::Core
end
end
describe '#condition' do
context 'without block' do
it 'returns the assigned condition' do
dsl.instance_eval { @condition = :some_condition }
expect(dsl.condition).to be :some_condition
end
end
end
describe '#evaluate' do
let(:block) { proc { throw :task_code } }
@ -122,14 +131,5 @@ module Producer::Core
end
end
end
describe '#condition' do
context 'without block' do
it 'returns the assigned condition' do
dsl.instance_eval { @condition = :some_condition }
expect(dsl.condition).to be :some_condition
end
end
end
end
end