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