Quit on `mod1+q' key binding
* Loop our runner until it is "stopped"; * Use the event dispatcher to stop the runner on `mod1+q' key press; * Tell the manager to grab the `q' key.
This commit is contained in:
@@ -15,6 +15,10 @@ module Uh
|
||||
described_class.run arguments, stdout: stdout, stderr: stderr
|
||||
end
|
||||
|
||||
# FIXME: remove this hack we currently need to prevent the Runner from
|
||||
# blocking.
|
||||
before { allow(Runner).to receive :run }
|
||||
|
||||
it 'builds a new CLI with given arguments' do
|
||||
expect(described_class)
|
||||
.to receive(:new).with(arguments, stdout: stdout).and_call_original
|
||||
|
Reference in New Issue
Block a user