test/test_context.rb in rbczmq-0.1 vs test/test_context.rb in rbczmq-0.2

- old
+ new

@@ -47,15 +47,29 @@ end def test_linger ctx = ZMQ::Context.new assert_raises TypeError do - ctx.linger = :invalid + ctx.linger = :invalid end ctx.linger = 10 assert_raises ZMQ::Error do ctx.linger = -2 end + ensure + ctx.destroy + end + + def test_hwm + ctx = ZMQ::Context.new + assert_raises TypeError do + ctx.hwm = :invalid + end + ctx.hwm = 10 + assert_raises ZMQ::Error do + ctx.hwm = -2 + end + assert_equal 10, ctx.hwm ensure ctx.destroy end def test_bind_connect \ No newline at end of file