Sha256: bbfb1f3aeb8e5ce97ea51c435fc57379f96ab1e5df7756f8f5ad6f7bc5ff6f31
Contents?: true
Size: 374 Bytes
Versions: 3
Compression:
Stored size: 374 Bytes
Contents
describe "The cuukie_server command" do it "starts the Cuukie server" do Process.detach fork { exec "ruby bin/cuukie_server >/dev/null 2>&1" } response = nil until !response begin response = RestClient.get 'http://localhost:4569/ping' rescue; end end begin RestClient.delete 'http://localhost:4569/' rescue; end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cuukie-0.1.2 | spec/commands_spec.rb |
cuukie-0.1.1 | spec/commands_spec.rb |
cuukie-0.1.0 | spec/commands_spec.rb |