# File test/test_rc_d.rb, line 239 def test_locked_by_alive_process File.open(@store_path, 'w') {|output| output.write(ALIVE_PID.to_s + "\n") } assert_exception(RuntimeError) { @rc_d.lock } assert_equal(2, @open_call) assert_equal(@store_path, @open_path) assert_equal('r', @open_mode) assert_equal(true, @open_block_given_p) assert_equal(ALIVE_PID.to_s + "\n", File.open(@store_path) {|input| input.read }) assert_equal(1, @proc_alive_call) assert_equal(ALIVE_PID, @proc_alive_pid) end