Sha256: 9f2de5e47c701702f501ff23997e20096fe1c0cb8c28fc5cde61df73c2158379
Contents?: true
Size: 707 Bytes
Versions: 25
Compression:
Stored size: 707 Bytes
Contents
require "rubygems" require "spec" # gem install redgreen for colored test output begin require "redgreen" unless ENV['TM_CURRENT_LINE']; rescue LoadError; end path = File.expand_path(File.dirname(__FILE__) + "/../lib/") $LOAD_PATH.unshift(path) unless $LOAD_PATH.include?(path) require "lib/typhoeus" # local servers for running tests require File.dirname(__FILE__) + "/servers/method_server.rb" def start_method_server(port, sleep = 0) MethodServer.sleep_time = sleep pid = Process.fork do EventMachine::run { EventMachine.epoll EventMachine::start_server("0.0.0.0", port, MethodServer) } end sleep 0.2 pid end def stop_method_server(pid) Process.kill("HUP", pid) end
Version data entries
25 entries across 25 versions & 5 rubygems