test/test_context.rb in rbczmq-1.7.7 vs test/test_context.rb in rbczmq-1.7.8
- old
+ new
@@ -9,11 +9,11 @@
assert_raises(ZMQ::Error) do
ZMQ::Context.new
end
assert_equal ctx, ZMQ.context
ensure
- assert_nil ctx.destroy
+ ctx.destroy
end
def test_destroyed_context
ctx = ZMQ::Context.new
ctx.destroy
@@ -28,10 +28,10 @@
assert_raises(ZMQ::Error) do
ZMQ::Context.new
end
assert_equal ctx, ZMQ.context
ensure
- assert_nil ctx.destroy
+ ctx.destroy
end
def test_iothreads
ctx = ZMQ::Context.new
assert_raises TypeError do