Sha256: d25f374b63a64a47bab06e4680c1f04369908764c2a9e78a4de7137ca41f303d

Contents?: true

Size: 436 Bytes

Versions: 1

Compression:

Stored size: 436 Bytes

Contents

require File.dirname(__FILE__) + '/helper'

if Monitr::EventHandler.event_system == "kqueue"
  
  class TestHandlersKqueueHandler < Test::Unit::TestCase
    def test_register_process
      KQueueHandler.expects(:monitor_process).with(1234, 2147483648)
      KQueueHandler.register_process(1234, [:proc_exit])
    end
  
    def test_events_mask
      assert_equal 2147483648, KQueueHandler.events_mask([:proc_exit])
    end
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
monitr-0.0.1 test/test_handlers_kqueue_handler.rb