Sha256: 103026de218e01c8172bf443f7bd17e2989a70804eea101251ffc379e206fe6c

Contents?: true

Size: 989 Bytes

Versions: 1

Compression:

Stored size: 989 Bytes

Contents

Feature: Start and stop daemon

  In order to start and stop a background daemon
  As a funky user
  I want foreground to start and stop that background daemon

  Scenario: Run sample daemon via foreground
    When I run the sample daemon via foreground
    Then foreground should run
    And the sample daemon should run

  Scenario Outline: Kill sample daemon via foreground
    Given I run the sample daemon via foreground
    When I send foreground a <signal> signal
    And I run `sleep 1`
    Then foreground should not run
    And the sample daemon should not run
    And the sample daemon should have received a TERM signal

    Examples:
      | signal |
      | TERM   |
      | INT    |

  Scenario: Refresh sample daemon via foreground
    Given I run the sample daemon via foreground
    When I send foreground a HUP signal
    And I run `sleep 1`
    Then foreground should run
    And the sample daemon should run
    And the sample daemon should have received a HUP signal

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
foreground-0.1.0 features/start_stop.feature