File: helper.rb

package info (click to toggle)
ruby-pluggaloid 1.7.0-4
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 264 kB
  • sloc: ruby: 1,752; sh: 2; makefile: 2
file content (9 lines) | stat: -rw-r--r-- 233 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
# -*- coding: utf-8 -*-

module PluggaloidTestHelper
  def eval_all_events(delayer=Delayer, &block)
    native = Thread.list
    block.() if block
    delayer.run while not(delayer.empty? and (Thread.list - native).empty?)
  end
end