Sha256: b630ddb91a05ecf8685790747f7efaab5e4e1bf7900f20c10b8e09947f2f6ec4

Contents?: true

Size: 398 Bytes

Versions: 19

Compression:

Stored size: 398 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
  Process.kill(9, pid)
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
excon-0.2.1 tests/test_helper.rb
excon-0.2.0 tests/test_helper.rb
excon-0.1.4 tests/test_helper.rb
excon-0.1.3 tests/test_helper.rb
excon-0.1.2 tests/test_helper.rb
excon-0.1.1 tests/test_helper.rb
excon-0.1.0 tests/test_helper.rb
excon-0.0.26 tests/test_helper.rb
excon-0.0.25 tests/test_helper.rb
excon-0.0.24 tests/test_helper.rb
excon-0.0.23 tests/test_helper.rb
excon-0.0.22 tests/test_helper.rb
excon-0.0.21 tests/test_helper.rb
excon-0.0.20 tests/test_helper.rb
excon-0.0.19 tests/test_helper.rb
excon-0.0.18 tests/test_helper.rb
excon-0.0.17 tests/test_helper.rb
excon-0.0.16 tests/test_helper.rb
excon-0.0.15 tests/test_helper.rb