diff options
| author | mo khan <mo.khan@gmail.com> | 2019-10-12 14:39:39 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2019-10-12 14:39:39 -0600 |
| commit | f87ad6a485a005890ae24b82caa643ef90c430e8 (patch) | |
| tree | b0b4c9e3c0115cc49ca1a0a21f54cea3d2c066c6 /test | |
| parent | a7e0086ff90d462f47a27c24e74af3d98e2cae58 (diff) | |
add test for finding uid 0
Diffstat (limited to 'test')
| -rw-r--r-- | test/uid_zero_test.bats | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/uid_zero_test.bats b/test/uid_zero_test.bats new file mode 100644 index 0000000..397312e --- /dev/null +++ b/test/uid_zero_test.bats @@ -0,0 +1,9 @@ +#!/usr/bin/env bats + +load test_helper + +@test "it finds the user with uid 0" { + run ./bin/uid-zero test/fixtures/passwd + + assert_success $'root:0' +} |
