1
0
mirror of https://github.com/Tarrasch/zsh-autoenv.git synced 2024-11-26 00:40:59 +02:00

tests: add setup script, used to be for all tests

This commit is contained in:
Daniel Hahler 2014-11-21 20:07:06 +01:00
parent 19d9e50650
commit c1a25d724e
4 changed files with 6 additions and 10 deletions

View File

@ -1,6 +1,4 @@
Ensure we have our mocked out ENV_AUTHORIZATION_FILE $ source $TESTDIR/setup.sh
$ [[ $ENV_AUTHORIZATION_FILE[0,4] == '/tmp' ]] || return 1
Lets set a simple .env action Lets set a simple .env action

View File

@ -1,8 +1,6 @@
Test $PWD and $_dotenv_cwd. Test $PWD and $_dotenv_cwd.
Ensure we have our mocked out ENV_AUTHORIZATION_FILE. $ source $TESTDIR/setup.sh
$ [[ $ENV_AUTHORIZATION_FILE[0,4] == '/tmp' ]] || return 1
Setup env actions / output. Setup env actions / output.

View File

@ -1,7 +1,4 @@
Ensure we have our mocked out ENV_AUTHORIZATION_FILE $ source $TESTDIR/setup.sh
$ [[ $ENV_AUTHORIZATION_FILE[0,4] == '/tmp' ]] || return 1
Lets set a simple .env action Lets set a simple .env action

3
tests/setup.sh Normal file
View File

@ -0,0 +1,3 @@
# Ensure we have our mocked out ENV_AUTHORIZATION_FILE
[[ $ENV_AUTHORIZATION_FILE[0,4] == '/tmp' ]] || return 1