Sha256: dfd1fbff08795c6ad481cf7490c482c0e2b7a3655678e1d3d563bf81ddd83d5c
Contents?: true
Size: 995 Bytes
Versions: 2
Compression:
Stored size: 995 Bytes
Contents
Feature: -S (--socket_dir) option -S (--socket_dir) option specifies the location to put socket files Background: Given I set the environment variables to: | variable | value | | TREMA_LOG_DIR | . | | TREMA_PID_DIR | . | And a file named "null_controller.rb" with: """ruby class NullController < Trema::Controller; end """ @sudo Scenario: -S option When I successfully run `trema run null_controller.rb -S . -d` And sleep 3 Then a socket file named "NullController.ctl" should exist @sudo Scenario: --socket_dir option When I successfully run `trema run null_controller.rb --socket_dir . -d` And sleep 3 Then a socket file named "NullController.ctl" should exist @sudo Scenario: "No such directory" error When I run `trema run null_controller.rb -S sock -d` Then the exit status should not be 0 And the stderr should contain: """ No such directory """
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
trema-0.10.1 | features/trema_run/socket_dir_option.feature |
trema-0.10.0 | features/trema_run/socket_dir_option.feature |