Sha256: 0e475dfdff22b970089b196eb10e34cbec8e0cde518e4240b66632a304db26a5
Contents?: true
Size: 394 Bytes
Versions: 1
Compression:
Stored size: 394 Bytes
Contents
module TestWebServer mattr_accessor :server def self.start TestWebServer.server = Thread.new { app = proc { [200, {'Content-Type' => 'text/plain'}, ['Test']] } Rack::Handler::Thin.run(app,:Port => 3001) } puts "Starting Test Webserver" sleep 2 end def self.stop Thread.kill(TestWebServer.server) puts "Stopping Test Webserver" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bigbench-0.0.1 | spec/lib/test_web_server.rb |