mirror of
https://github.com/tests-always-included/mo.git
synced 2024-12-22 09:47:48 +00:00
23 lines
286 B
Plaintext
23 lines
286 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
cd "${0%/*}" || exit 1
|
||
|
. ../run-tests
|
||
|
|
||
|
USER=j.doe
|
||
|
ADMIN=false
|
||
|
MO_FALSE_IS_EMPTY=yeppers
|
||
|
template() {
|
||
|
cat <<EOF
|
||
|
The user {{USER}} exists.
|
||
|
{{#ADMIN}}
|
||
|
WRONG - should not be an admin.
|
||
|
{{/ADMIN}}
|
||
|
EOF
|
||
|
}
|
||
|
expected() {
|
||
|
cat <<EOF
|
||
|
The user j.doe exists.
|
||
|
EOF
|
||
|
}
|
||
|
|
||
|
runTest
|