summaryrefslogtreecommitdiff
path: root/test/duplicate-login-names_test.bats
blob: f91d0a2c9cd2a89473efe46d28ce4461d2811147 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bats

load test_helper

@test "it finds users with duplicate login names" {
  run ./bin/duplicate-login-names test/fixtures/passwd_with_duplicate_login_names

  assert_failure $'root'
}

@test "it does not find any duplicate login names" {
  run ./bin/duplicate-login-names test/fixtures/passwd

  assert_success
}