features/logger/fatal.feature in trema-0.8.4 vs features/logger/fatal.feature in trema-0.9.0

- old
+ new

@@ -1,8 +1,13 @@ Feature: Trema::Controller#logger.fatal Background: - Given a file named "hello.rb" with: + Given I set the environment variables to: + | variable | value | + | TREMA_LOG_DIR | . | + | TREMA_PID_DIR | . | + | TREMA_SOCKET_DIR | . | + And a file named "hello.rb" with: """ruby class Hello < Trema::Controller def start(_args) logger.fatal 'Konnichi Wa' end @@ -10,32 +15,33 @@ """ @sudo Scenario: the default logging level When I trema run "hello.rb" interactively + And sleep 2 And I trema killall "Hello" Then the output should contain "Konnichi Wa" And the file "Hello.log" should contain "FATAL -- : Konnichi Wa" @sudo Scenario: --logging_level fatal When I run `trema run hello.rb --logging_level fatal` interactively - And I run `sleep 3` + And sleep 2 And I trema killall "Hello" Then the output should contain "Konnichi Wa" And the file "Hello.log" should contain "FATAL -- : Konnichi Wa" @sudo Scenario: -v When I run `trema -v run hello.rb` interactively - And I run `sleep 3` + And sleep 2 And I trema killall "Hello" Then the output should contain "Konnichi Wa" And the file "Hello.log" should contain "FATAL -- : Konnichi Wa" @sudo Scenario: --verbose When I run `trema --verbose run hello.rb` interactively - And I run `sleep 3` + And sleep 2 And I trema killall "Hello" Then the output should contain "Konnichi Wa" And the file "Hello.log" should contain "FATAL -- : Konnichi Wa"