Sha256: 9f27e48f51485ab35c1b77a515e5a7b1e437afdeb9369b5edf07019f702b76f6
Contents?: true
Size: 267 Bytes
Versions: 4
Compression:
Stored size: 267 Bytes
Contents
class TestServer def self.port (ENV['PORT'] || 13000).to_i end def self.start(exit_at=5000) system "PORT=#{port} EXIT_AT=#{exit_at} npm start > /dev/null &" sleep 1 end def self.url "http://localhost:#{port}" end end TestServer.start
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
linda-socket.io-client-0.0.4 | test/server.rb |
linda-socket.io-client-0.0.3 | test/server.rb |
linda-socket.io-client-0.0.2 | test/server.rb |
linda-socket.io-client-0.0.1 | test/server.rb |