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