Sha256: a23355e6fd662967b717e6e5ece8f1c66f0edbeef5e45bf0b3b6098e74cb00b2
Contents?: true
Size: 1.26 KB
Versions: 5
Compression:
Stored size: 1.26 KB
Contents
require_relative 'test_helper' describe "Kill Command" do include TestDsl 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_output_includes "signal name BLA is not a signal I know about", interface.error_queue end end describe "Post Mortem" do it "must work in post-mortem mode" do skip("No post morten mode for now") #Process.expects(:kill).with("USR1", Process.pid) #enter 'cont', 'kill USR1' #debug_file "post_mortem" end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
byebug-1.0.3 | test/kill_test.rb |
byebug-1.0.2 | test/kill_test.rb |
byebug-1.0.1 | test/kill_test.rb |
byebug-1.0.0 | test/kill_test.rb |
byebug-0.0.1 | test/kill_test.rb |