require 'coveralls' Coveralls.wear! require 'bundler/setup' require 'celluloid/zmq' logfile = File.open(File.expand_path("../../log/test.log", __FILE__), 'a') Celluloid.logger = Logger.new(logfile) Celluloid.shutdown_timeout = 1 RSpec.configure(&:disable_monkey_patching!) RSpec.configure do |config| config.around do |ex| Celluloid::ZMQ.init(1) unless ex.metadata[:no_init] Celluloid.boot ex.run Celluloid.shutdown Celluloid::ZMQ.terminate end end