more diagnostics
[god.git] / test / test_handlers_kqueue_handler.rb
blob24dcb82be3c4d5eed94f163d59c3eef714d81a55
1 require File.dirname(__FILE__) + '/helper'
3 if God::EventHandler.event_system == "kqueue"
4   
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])
9     end
10   
11     def test_events_mask
12       assert_equal 2147483648, KQueueHandler.events_mask([:proc_exit])
13     end
14   end
15   
16 end