cuke: check exit code as last step, add step to non-existing file

This commit is contained in:
Emil Tin
2014-03-22 00:47:20 +01:00
parent de29e17d95
commit 7048dd754d
3 changed files with 17 additions and 15 deletions
+5 -3
View File
@@ -6,13 +6,15 @@ Feature: Command line options: invalid options
Scenario: Non-existing option
When I run "osrm-routed --fly-me-to-the-moon"
Then it should exit with code 255
Then stdout should be empty
And stderr should contain "exception"
And stderr should contain "fly-me-to-the-moon"
And it should exit with code 255
Scenario: Missing file
When I run "osrm-routed over-the-rainbow.osrm"
Then it should exit with code 255
Then stdout should contain "over-the-rainbow.osrm"
And stderr should contain "exception"
And stderr should contain "does not exist"
And stderr should contain "does not exist"
And it should exit with code 255