Skip to content

Commit

Permalink
added test for --scan -r parameter validation
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwittig committed May 10, 2016
1 parent 92a3dd7 commit 3bde453
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/git-secrets.bats
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,11 @@ load test_helper
[ $status -eq 1 ]
}

@test "-recursive is mutual exclusive with --scan" {
repo_run git-secrets --scan -r
[ $status -eq 0 ]
}

@test "-recursive can only be used with --scan" {
repo_run git-secrets --list -r
[ $status -eq 1 ]
Expand Down

0 comments on commit 3bde453

Please sign in to comment.