1
0
mirror of https://github.com/octoleo/hosts.git synced 2024-11-15 01:34:12 +00:00
hosts/test/test_helper.bash

14 lines
315 B
Bash
Raw Normal View History

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"
}