Sha256: 6f29fc87d3a77f143074a4ca4d2a2b6a936a50a4df7ff10c45179c1e9b5667ab
Contents?: true
Size: 955 Bytes
Versions: 1
Compression:
Stored size: 955 Bytes
Contents
Feature: Worker Scenario: Starting and stopping Given a file named "worker" with mode "744" and with: """ #!/usr/bin/env ruby $LOAD_PATH << File.expand_path("../../../lib", __FILE__) require "daemonic" class MyWorker def produce(queue) sleep 0.1 queue << "tick" end def consume(message) puts message sleep 0.1 end end Daemonic.run { MyWorker.new } """ When I run `./worker start --daemonize --pid tmp/worker.pid` Then the exit status should be 0 When I run `./worker status --pid tmp/worker.pid` Then the exit status should be 0 When I run `./worker restart --pid tmp/worker.pid` Then the exit status should be 0 When I run `./worker stop --pid tmp/worker.pid` Then the exit status should be 0 When I run `./worker status --pid tmp/worker.pid` Then the exit status should be 2
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
daemonic-0.1.2 | features/worker.feature |