Sha256: bb25a669601518e2c85356939909af98836c37e45ba265c6ebd69e9ab9a4249e

Contents?: true

Size: 986 Bytes

Versions: 8

Compression:

Stored size: 986 Bytes

Contents

Feature: start handler
  Background:
    Given a file named "hello.rb" with:
      """ruby
      class Hello < Trema::Controller
        def start(args)
          logger.info "args = [#{args.join(', ')}]"
        end
      end
      """

  @sudo
  Scenario: invoke start handler
    When I successfully run `trema run hello.rb -d`
    Then the file "Hello.log" should contain "args = []"

  @sudo
  Scenario: invoke start handler with args
    When I successfully run `trema run hello.rb -d -- arg0 arg1 arg2`
    Then the file "Hello.log" should contain "args = [arg0, arg1, arg2]"

  @sudo
  Scenario: invoke start handler (OpenFlow 1.3)
    When I successfully run `trema run hello.rb --openflow13 -d`
    Then the file "Hello.log" should contain "args = []"

  @sudo
  Scenario: invoke start handler with args (OpenFlow 1.3)
    When I successfully run `trema run hello.rb --openflow13 -d -- arg0 arg1 arg2`
    Then the file "Hello.log" should contain "args = [arg0, arg1, arg2]"

Version data entries

8 entries across 8 versions & 1 rubygems

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