Sha256: 585691624b8632f0265cd20084c0eff1ef7fad805426f1857695dfff6dba7ded

Contents?: true

Size: 411 Bytes

Versions: 13

Compression:

Stored size: 411 Bytes

Contents

require 'rubygems' if RUBY_VERSION < '1.9'
require 'bundler'

Bundler.require(:default, :development)

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

13 entries across 13 versions & 1 rubygems

Version Path
excon-0.4.0 tests/test_helper.rb
excon-0.3.8 tests/test_helper.rb
excon-0.3.7 tests/test_helper.rb
excon-0.3.6 tests/test_helper.rb
excon-0.3.5 tests/test_helper.rb
excon-0.3.4 tests/test_helper.rb
excon-0.3.3 tests/test_helper.rb
excon-0.3.2 tests/test_helper.rb
excon-0.3.1 tests/test_helper.rb
excon-0.3.0 tests/test_helper.rb
excon-0.2.8 tests/test_helper.rb
excon-0.2.7 tests/test_helper.rb
excon-0.2.6 tests/test_helper.rb