Sha256: 3e435d3be9c0c32ea1a82a67d40b984f93dd3a3dd7e0c3d3a54b0ae75026167a
Contents?: true
Size: 249 Bytes
Versions: 13
Compression:
Stored size: 249 Bytes
Contents
class TestServer def self.port (ENV['PORT'] || 13000).to_i end def self.start(exit_at=4000) system "PORT=#{port} EXIT_AT=#{exit_at} npm start > /dev/null &" sleep 1 end def self.url "http://localhost:#{port}" end end
Version data entries
13 entries across 13 versions & 2 rubygems