test/world_test.rb in dynflow-0.8.30 vs test/world_test.rb in dynflow-0.8.31

- old
+ new

@@ -17,9 +17,22 @@ registered_world = world.coordinator.find_worlds(false, id: world_with_custom_meta.id).first registered_world.meta.must_equal('fast' => true) end end + describe '#get_execution_status' do + let(:base) do + { :pool_size => 5, :free_workers => 5, :execution_status => {} } + end + + it 'retrieves correct execution items count' do + world.get_execution_status(world.id, nil, 5).value!.must_equal(base) + id = 'something like uuid' + expected = base.merge(:execution_status => { id => 0 }) + world.get_execution_status(world.id, id, 5).value!.must_equal(expected) + end + end + describe '#terminate' do it 'fires an event after termination' do terminated_event = world.terminated terminated_event.completed?.must_equal false world.terminate