Handle termination properly
* Tell the manager to close the display before terminating; * Log about quit request and process termination.
This commit is contained in:
@@ -129,6 +129,19 @@ module Uh
|
||||
runner.run_until &block
|
||||
end
|
||||
end
|
||||
|
||||
describe '#terminate' do
|
||||
it 'tells the manager to disconnect' do
|
||||
expect(runner.manager).to receive :disconnect
|
||||
runner.terminate
|
||||
end
|
||||
|
||||
it 'logs about program termination' do
|
||||
allow(runner.manager).to receive :disconnect
|
||||
expect(env).to receive(:log).with /terminat/i
|
||||
runner.terminate
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user