1 require File.dirname(__FILE__) + '/helper'
3 if God::EventHandler.event_system == "kqueue"
5 class TestHandlersKqueueHandler < Test::Unit::TestCase
6 def test_register_process
7 KQueueHandler.expects(:monitor_process).with(1234, 2147483648)
8 KQueueHandler.register_process(1234, [:proc_exit])
12 assert_equal 2147483648, KQueueHandler.events_mask([:proc_exit])