Sha256: c69028087f449ca951d2f688e939882a56fce2605be78fb46a9f66303a02126e

Contents?: true

Size: 982 Bytes

Versions: 1

Compression:

Stored size: 982 Bytes

Contents

Feature: Start and stop

  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.0.4 features/start_stop.feature