Sha256: 02f41e3b37cbe7d6449c6bb5021f87d29a5737b0eabbe7f0928200058b7cb727

Contents?: true

Size: 373 Bytes

Versions: 10

Compression:

Stored size: 373 Bytes

Contents

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

Bundler.require(:default, :development)

def rackup_path(*parts)
  File.expand_path(File.join(File.dirname(__FILE__), 'rackups', *parts))
end

def with_rackup(name)
  pid, w, r, e = Open4.popen4("rackup #{rackup_path(name)}")
  until e.gets =~ /HTTPServer#start:/; end
  yield
ensure
  Process.kill(9, pid)
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
excon-0.6.0 tests/test_helper.rb
excon-0.5.8 tests/test_helper.rb
excon-0.5.7 tests/test_helper.rb
excon-0.5.6 tests/test_helper.rb
excon-0.5.5 tests/test_helper.rb
excon-0.5.4 tests/test_helper.rb
excon-0.5.3 tests/test_helper.rb
excon-0.5.2 tests/test_helper.rb
excon-0.5.1 tests/test_helper.rb
excon-0.5.0 tests/test_helper.rb