rescue event register and implement transition state override
[god.git] / test / test_handlers_kqueue_handler.rb
blob6d4c50d35072f100fdf5650c8a6385f8bc7e3b78
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])
7   end
8   
9   def test_events_mask
10     assert_equal 2147483648, KQueueHandler.events_mask([:proc_exit])
11   end
12 end