#!/usr/bin/env bats
load test_helper
@test "it finds the user with uid 0" {
run ./bin/uid-zero test/fixtures/passwd_with_uid_zero
assert_success $'root:0'
}
@test "it does not find a user with uid 0" {
run ./bin/uid-zero test/fixtures/passwd_without_uid_zero
assert_failure $''
}