Sha256: b5983a7bcf1f427d6252ff32b06fceee0f10c2e786c00304786f7a3c525453b4

Contents?: true

Size: 1.63 KB

Versions: 5

Compression:

Stored size: 1.63 KB

Contents

Feature: Adhearsion Ahn CLI (stop)
  As an Adhearsion user
  I want the ahn command to provide a 'stop' command
  So that I can stop a running Adhearsion daemon

  @reconnect @skip_jruby
  Scenario: Command stop with valid path and pid option
    Given that I create a valid app under "path/somewhere"
    When I run `ahn daemon path/somewhere --pid-file=ahn.pid`
    And I run `ahn stop path/somewhere --pid-file=ahn.pid`
    Then the output should contain:
    """
    Stopping Adhearsion
    """
    And the file "ahn.pid" should not exist

  @reconnect @skip_jruby
  Scenario: Command stop with valid path and no pid option
    Given that I create a valid app under "path/somewhere"
    When I run `ahn daemon path/somewhere`
    And I run `ahn stop path/somewhere`
    Then the output should contain:
    """
    Stopping Adhearsion
    """
    And the file "path/somewhere/adhearsion.pid" should not exist

  @reconnect @skip_jruby
  Scenario: Command stop with no options inside the app directory
    Given that I create a valid app under "path/somewhere"
    And I cd to "path/somewhere"
    When I run `ahn daemon`
    And I run `ahn stop`
    Then the output should contain:
    """
    Stopping Adhearsion
    """
    And the file "adhearsion.pid" should not exist

  @reconnect @skip_jruby
  Scenario: Command stop with pid option inside the app directory
    Given that I create a valid app under "path/somewhere"
    And I cd to "path/somewhere"
    When I run `ahn daemon --pid-file=ahn.pid`
    And I run `ahn stop --pid-file=ahn.pid`
    Then the output should contain:
    """
    Stopping Adhearsion
    """
    And the file "ahn.pid" should not exist

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
adhearsion-2.6.4 features/cli_stop.feature
adhearsion-2.6.3 features/cli_stop.feature
adhearsion-2.6.2 features/cli_stop.feature
adhearsion-2.6.1 features/cli_stop.feature
adhearsion-2.6.0 features/cli_stop.feature