Sha256: da89eb1e121dcc3942c120a7ea56c1ece46ef547a3ec64c51e3292117b0e8b8b

Contents?: true

Size: 1.25 KB

Versions: 8

Compression:

Stored size: 1.25 KB

Contents

Feature: Trema::Controller#logger.warn
  Background:
    Given a file named "hello.rb" with:
      """ruby
      class Hello < Trema::Controller
        def start(_args)
          logger.warn 'Konnichi Wa'
        end
      end
      """

  @sudo
  Scenario: the default logging level
    When I trema run "hello.rb" interactively
    And I trema killall "Hello"
    Then the output should contain "Konnichi Wa"
    And the file "Hello.log" should contain "WARN -- : Konnichi Wa"

  @sudo
  Scenario: --logging_level warn
    When I run `trema run hello.rb --logging_level warn` interactively
    And I run `sleep 3`
    And I trema killall "Hello"
    Then the output should contain "Konnichi Wa"
    And the file "Hello.log" should contain "WARN -- : Konnichi Wa"

  @sudo
  Scenario: -v
    When I run `trema -v run hello.rb` interactively
    And I run `sleep 3`
    And I trema killall "Hello"
    Then the output should contain "Konnichi Wa"
    And the file "Hello.log" should contain "WARN -- : Konnichi Wa"

  @sudo
  Scenario: --verbose
    When I run `trema --verbose run hello.rb` interactively
    And I run `sleep 3`
    And I trema killall "Hello"
    Then the output should contain "Konnichi Wa"
    And the file "Hello.log" should contain "WARN -- : Konnichi Wa"

Version data entries

8 entries across 8 versions & 1 rubygems

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