test/mqueue_test.rb in posix-mqueue-0.0.6 vs test/mqueue_test.rb in posix-mqueue-0.0.7

- old
+ new

@@ -69,11 +69,11 @@ @queue.send('c' * 4097) # one byte too large end # Set to the maximum for Linux with_queue "/big-queue", msgsize: 2 ** 13 do |q| - assert_equal 2 ** 13, q.msgsiza + assert_equal 2 ** 13, q.msgsize q.send('c' * (2 ** 13)) end end @@ -93,9 +93,13 @@ @queue.send "first" @queue.send "second" @queue.send "third" assert_equal 3, @queue.size + end + + def test_to_io + assert_instance_of IO, @queue.to_io end private def with_queue(name, options = {}) queue = POSIX::Mqueue.new(name, options)