# File test/test_rc_d.rb, line 90 def test_locked_by_alive_process File.open(@lock, 'w') {|output| output.write(ALIVE_PID.to_s + "\n") } assert_exception(RuntimeError) { @rc_d.lock } assert_equal(ALIVE_PID.to_s + "\n", File.open(@lock) {|input| input.read }) assert_equal(1, @proc_alive_call) assert_equal(ALIVE_PID, @proc_alive_pid) end