Sha256: b833d4874cf076306a2bd0e9f0b8a23a94b43034cb028e3501a81392cbcac18b

Contents?: true

Size: 428 Bytes

Versions: 7

Compression:

Stored size: 428 Bytes

Contents

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

if God::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

7 entries across 7 versions & 1 rubygems

Version Path
god-0.13.4 test/test_handlers_kqueue_handler.rb
god-0.13.3 test/test_handlers_kqueue_handler.rb
god-0.13.2 test/test_handlers_kqueue_handler.rb
god-0.13.1 test/test_handlers_kqueue_handler.rb
god-0.13.0 test/test_handlers_kqueue_handler.rb
god-0.12.1 test/test_handlers_kqueue_handler.rb
god-0.12.0 test/test_handlers_kqueue_handler.rb