mirror of
https://github.com/octoleo/hosts.git
synced 2024-11-15 01:34:12 +00:00
14 lines
315 B
Bash
14 lines
315 B
Bash
|
setup() {
|
||
|
# `$_HOSTS`
|
||
|
#
|
||
|
# The location of the `hosts` script being tested.
|
||
|
export _HOSTS="${BATS_TEST_DIRNAME}/../hosts"
|
||
|
|
||
|
export HOSTS_PATH="${BATS_TEST_DIRNAME}/tmp/hosts"
|
||
|
cp "${BATS_TEST_DIRNAME}/fixtures/hosts" "${BATS_TEST_DIRNAME}/tmp/hosts"
|
||
|
}
|
||
|
|
||
|
teardown() {
|
||
|
rm "${BATS_TEST_DIRNAME}/tmp/hosts"
|
||
|
}
|