Sha256: 39ddfb10fc00c10299dd183947e9729503fc2ebe04448573abce45c66110c567

Contents?: true

Size: 910 Bytes

Versions: 8

Compression:

Stored size: 910 Bytes

Contents

Feature: -P (--pid_dir) option

  -P (--pid_dir) option specifies the location to put pid files

  Background:
    Given a file named "null_controller.rb" with:
      """ruby
      class NullController < Trema::Controller; end
      """

  @sudo
  Scenario: -P option
    Given a directory named "pid"
    When I successfully run `trema run null_controller.rb -P pid -d`
    And I run `sleep 3`
    Then a file named "pid/NullController.pid" should exist

  @sudo
  Scenario: --pid_dir option
    Given a directory named "pid"
    When I successfully run `trema run null_controller.rb --pid_dir pid -d`
    And I run `sleep 3`
    Then a file named "pid/NullController.pid" should exist

  @sudo
  Scenario: "No such directory" error
    When I run `trema run null_controller.rb -P pid -d`
    Then the exit status should not be 0
    And the stderr should contain:
      """
      No such directory
      """

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
trema-0.8.4 features/trema_run/pid_dir_option.feature
trema-0.8.3 features/trema_run/pid_dir_option.feature
trema-0.8.2 features/trema_run/pid_dir_option.feature
trema-0.8.1 features/trema_run/pid_dir_option.feature
trema-0.8.0 features/trema_run/pid_dir_option.feature
trema-0.7.1 features/trema_run/pid_dir_option.feature
trema-0.7.0 features/trema_run/pid_dir_option.feature
trema-0.6.0 features/trema_run/pid_dir_option.feature