Fix task DSL spec:
* Use explicit named subject; * Fix description for Task::DSL#condition when condition is not met.
This commit is contained in:
parent
080ef063c0
commit
c642584c95
@ -20,7 +20,7 @@ module Producer::Core
|
|||||||
end
|
end
|
||||||
|
|
||||||
describe Task::DSL do
|
describe Task::DSL do
|
||||||
let(:dsl) { Task::DSL.new &block }
|
subject(:dsl) { Task::DSL.new &block }
|
||||||
|
|
||||||
describe '#initialize' do
|
describe '#initialize' do
|
||||||
let(:block) { Proc.new { raise 'error from task' } }
|
let(:block) { Proc.new { raise 'error from task' } }
|
||||||
@ -48,7 +48,7 @@ module Producer::Core
|
|||||||
raise
|
raise
|
||||||
} }
|
} }
|
||||||
|
|
||||||
it 'evaluates all the block' do
|
it 'stops block evaluation' do
|
||||||
expect { dsl }.not_to raise_error
|
expect { dsl }.not_to raise_error
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user