Sha256: 16dd8f239d856d2385e8c6bb004fac4cd7fe41b305d6695183f477021ac580a2
Contents?: true
Size: 405 Bytes
Versions: 4
Compression:
Stored size: 405 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib/excon')) require 'open4' def local_file(*parts) File.expand_path(File.join(File.dirname(__FILE__), *parts)) end def with_rackup(configru = local_file('config.ru')) pid, w, r, e = Open4.popen4("rackup #{configru}") while `lsof -p #{pid} -P -i | grep ruby | grep TCP`.chomp.empty?; end yield ensure Process.kill(9, pid) end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
bbcloud-0.8.1 | lib/bbcloud/vendor/excon-0.2.4/tests/test_helper.rb |
excon-0.2.4 | tests/test_helper.rb |
excon-0.2.3 | tests/test_helper.rb |
excon-0.2.2 | tests/test_helper.rb |