test/spec_helper.rb in angelo-0.3.3 vs test/spec_helper.rb in angelo-0.4.0

- old
+ new

@@ -1,7 +1,14 @@ $:.unshift File.expand_path '../../lib', __FILE__ +if RUBY_ENGINE == "ruby" && ENV['TRAVIS'] != 'true' + require 'simplecov' + SimpleCov.coverage_dir File.join('test', 'coverage') + SimpleCov.start + SimpleCov.command_name 'minitest' +end + require 'bundler' Bundler.require :default, :development, :test require 'minitest/pride' require 'minitest/autorun' require 'angelo' @@ -40,49 +47,10 @@ end end end -module Cellper - - @@stop = false - @@testers = {} - - def define_action sym, &block - define_method sym, &block - end - - def remove_action sym - remove_method sym - end - - def unstop! - @@stop = false - end - - def stop! - @@stop = true - end - - def stop? - @@stop - end - - def testers; @@testers; end - -end - -class Reactor - include Celluloid::IO - extend Cellper -end - $reactor = Reactor.new - -class ActorPool - include Celluloid - extend Cellper -end $pool = ActorPool.pool size: CONCURRENCY def obj {'foo' => 'bar', 'bar' => 123.4567890123456, 'bat' => true}