about summary refs log tree commit homepage
path: root/test/test_kqueue_io.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_kqueue_io.rb')
-rw-r--r--test/test_kqueue_io.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_kqueue_io.rb b/test/test_kqueue_io.rb
index 904a1cc..076c9f0 100644
--- a/test/test_kqueue_io.rb
+++ b/test/test_kqueue_io.rb
@@ -16,6 +16,12 @@ class TestKqueueIO < Test::Unit::TestCase
     end
   end
 
+  def test_bad_type
+    kq = Kqueue::IO.new
+    @to_close << kq
+    assert_raises(TypeError) { kq.kevent("HI") }
+  end
+
   def test_multi_event
     kq = Kqueue::IO.new
     @to_close << kq