Skip to content

Commit 50fa902

Browse files
author
Matt Pearson
committed
Add test for positional args.
1 parent 4afe088 commit 50fa902

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

arg-parsing-test.bats

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,10 @@ write_conf_file() {
7575
parse_args --message "a message"
7676
assert that "$commit_message" = "a message"
7777
}
78+
@test ' correctly handles positional args.' {
79+
parse_args pos-dir pos-branch pos-repo
80+
assert that "$deploy_directory" = "pos-dir"
81+
assert that "$deploy_branch" = "pos-branch"
82+
assert that "$repo" = "pos-repo"
83+
}
7884

0 commit comments

Comments
 (0)