Sha256: 5399e4e2ae2c1ccbe0deab9a0598d90fca883e301d0ccc85a2dcb4f4cec219bd
Contents?: true
Size: 1012 Bytes
Versions: 3
Compression:
Stored size: 1012 Bytes
Contents
require_relative 'test_helper' class TestKill < TestDsl::TestCase it 'must send signal to some pid' do Process.expects(:kill).with('USR1', Process.pid) enter 'kill USR1' debug_file('kill') end it 'must finalize interface when sending KILL signal explicitly' do Process.stubs(:kill).with('KILL', Process.pid) interface.expects(:finalize) enter 'kill KILL' debug_file('kill') end it 'must ask confirmation when sending KILL implicitly' do Process.expects(:kill).with('KILL', Process.pid) enter 'kill', 'y' debug_file('kill') check_output_includes 'Really kill? (y/n)', interface.confirm_queue end describe 'unknown signal' do it 'must not send the signal' do Process.expects(:kill).with('BLA', Process.pid).never enter 'kill BLA' debug_file('kill') end it 'must show an error' do enter 'kill BLA' debug_file('kill') check_error_includes 'signal name BLA is not a signal I know about' end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
byebug-2.1.1 | test/kill_test.rb |
byebug-2.1.0 | test/kill_test.rb |
byebug-2.0.0 | test/kill_test.rb |