1 require File.dirname(__FILE__) + '/helper'
3 class TestHandlersKqueueHandler < Test::Unit::TestCase
4 def test_register_process
5 KQueueHandler.expects(:monitor_process).with(1234, 2147483648)
6 KQueueHandler.register_process(1234, [:proc_exit])
10 assert_equal 2147483648, KQueueHandler.events_mask([:proc_exit])