19 lines
420 B
Bash
Executable file
19 lines
420 B
Bash
Executable file
#!/usr/bin/env bats
|
|
|
|
setup() {
|
|
load 'test_helper/bats-support/load'
|
|
load 'test_helper/bats-assert/load'
|
|
|
|
DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd )"
|
|
PATH="$DIR/../bin:$PATH"
|
|
|
|
git init -b main
|
|
git config user.email "john.doe@example.com"
|
|
git config user.name "John Doe"
|
|
}
|
|
|
|
@test "can run" {
|
|
git commit --allow-empty -m "Initial"
|
|
run git-check-assertions
|
|
assert_success
|
|
}
|