features/trema_run.feature in trema-0.4.8 vs features/trema_run.feature in trema-0.5.0
- old
+ new
@@ -43,5 +43,16 @@
"""
When I successfully run `trema -v run -p 1234 switch_ready.rb -c trema.conf -d`
And I run `sleep 5`
Then the file "SwitchReady.log" should contain "Hello 0xabc!"
+ @sudo
+ Scenario: trema run empty file and error
+ Given a file named "empty.rb" with:
+ """
+ """
+ When I run `trema -v run empty.rb`
+ Then the exit status should not be 0
+ And the stderr should contain:
+ """
+ No controller class is defined.
+ """