Sha256: 430f34c8ffc4e19ffc5b211503134a403aedba867c494090fe48212159828e28
Contents?: true
Size: 806 Bytes
Versions: 3
Compression:
Stored size: 806 Bytes
Contents
require "integration/band_representer" # require 'sinatra/runner' # TODO: merge that into sinatra-contrib. require 'lib/runner' class ServerRunner < Sinatra::Runner def app_file File.expand_path("../server.rb", __FILE__) end def command "bundle exec ruby #{app_file} -p #{port} -e production" end def ping_path # to be overwritten '/ping' end end class SslServerRunner < ServerRunner def command "bundle exec ruby #{File.expand_path("../ssl_server.rb", __FILE__)}" end def port 8443 end def protocol "https" end end begin runner = ServerRunner.new runner.run ssl_runner = SslServerRunner.new ssl_runner.run Minitest.after_run do runner.kill ssl_runner.kill end rescue Exception => e runner.kill ssl_runner.kill raise e end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
roar-1.0.4 | test/integration/runner.rb |
roar-1.0.3 | test/integration/runner.rb |
roar-1.0.2 | test/integration/runner.rb |