Integrate blocking and multiplexing workers usage

This commit is contained in:
Thibault Jouan
2015-04-17 21:25:43 +00:00
parent fa03cd736a
commit 9ea43ee69a
7 changed files with 35 additions and 3 deletions

View File

@@ -176,6 +176,15 @@ module Uh
end
end
context 'with worker option' do
let(:arguments) { %w[-w mux] }
it 'assigns the worker type in the env' do
cli.parse_arguments!
expect(cli.env.worker).to eq :mux
end
end
context 'with invalid option' do
let(:arguments) { %w[--unknown-option] }