Sha256: eadc231697df510665e3b971ac1264e2a1023c6da9665855fe7390350fc43953
Contents?: true
Size: 827 Bytes
Versions: 8
Compression:
Stored size: 827 Bytes
Contents
Feature: -l (--logging_level) option Background: Given a file named "hello.rb" with: """ruby class Hello < Trema::Controller def start(_args) logger.debug 'Konnichi Wa' end end """ @sudo Scenario: the default logging level When I trema run "hello.rb" And the file "Hello.log" should not contain "DEBUG -- : Konnichi Wa" @sudo Scenario: --logging_level debug When I run `trema run hello.rb --logging_level debug -d` And I run `sleep 3` And the file "Hello.log" should contain "DEBUG -- : Konnichi Wa" @sudo Scenario: "Invalid logging level" error When I run `trema run hello.rb --logging_level hoge -d` Then the exit status should not be 0 And the stderr should contain: """ Invalid logging level: hoge """
Version data entries
8 entries across 8 versions & 1 rubygems