Sha256: afe5fa0b4a7a50efb4d1046740e4e2f588ea40061123b641f534426df220a314
Contents?: true
Size: 464 Bytes
Versions: 3
Compression:
Stored size: 464 Bytes
Contents
require 'spec_helper' describe EventedBluepill::System do describe "#pid_alive?" do it "must return true if pid is alive" do ::Process.expects(:kill).with(0, 12345) EventedBluepill::System.pid_alive?(12345).must_equal true end it "must return false if pid is not alive" do ::Process.expects(:kill).with(0, 12345).raises(Errno::ESRCH, 'ignore') EventedBluepill::System.pid_alive?(12345).must_equal false end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
evented_bluepill-0.0.52 | spec/system_spec.rb |
evented_bluepill-0.0.51 | spec/system_spec.rb |
evented_bluepill-0.0.50 | spec/system_spec.rb |