Adding tests to fix for #338

Test:
  * Added new test case for issue #338, where package installation would fail when the `srcDir` path ended in a directory separator.
This commit is contained in:
Samantha Marshall 2017-04-24 13:45:31 -04:00
commit 05f0de4492
No known key found for this signature in database
GPG key ID: DF782CB74434EFA2
3 changed files with 11 additions and 0 deletions

View file

@ -0,0 +1,7 @@
# Package
version = "0.1.0"
author = "Samantha Marshall"
description = "test case to validate successful install when `srcDir` value ends in a directory separator"
license = "MIT"
srcDir = "src/"

View file

View file

@ -286,6 +286,10 @@ test "issue #206":
(output, exitCode) = execNimble("install", "-y") (output, exitCode) = execNimble("install", "-y")
check exitCode == QuitSuccess check exitCode == QuitSuccess
test "issue #338":
cd "issue338":
check execNimble("install", "-y").exitCode == QuitSuccess
test "can list": test "can list":
check execNimble("list").exitCode == QuitSuccess check execNimble("list").exitCode == QuitSuccess