]> Sergey Matveev's repositories - zsh-autoenv.git/blobdiff - tests/autoenv.t
Fixes after using `setopt nounset` during tests
[zsh-autoenv.git] / tests / autoenv.t
index 19d0592d95f28c9f90c27b14da00db1b55455907..701e3b463967d21abb56e773929655f6d8ad343d 100644 (file)
@@ -12,7 +12,7 @@ Manually create auth file
 
 Now try to make it accept it
 
-  $ unset _autoenv_stack_entered
+  $ _autoenv_stack_entered=()
   $ rm $AUTOENV_ENV_FILENAME
   $ _autoenv_ask_for_yes() { echo "yes" }
   $ cd .
@@ -33,11 +33,11 @@ The last "ENTERED" is because it executed the command.
 
 Now lets see that it actually checks the shasum value.
 
-  $ unset _autoenv_stack_entered
+  $ _autoenv_stack_entered=()
   $ cd .
   ENTERED
 
-  $ unset _autoenv_stack_entered
+  $ _autoenv_stack_entered=()
   $ rm $AUTOENV_ENV_FILENAME
   $ test_autoenv_add_to_env $PWD/.env mischief
   $ cd .
@@ -56,7 +56,7 @@ Now lets see that it actually checks the shasum value.
 
 Now, will it take no for an answer?
 
-  $ unset _autoenv_stack_entered
+  $ _autoenv_stack_entered=()
   $ rm $AUTOENV_ENV_FILENAME
   $ _autoenv_ask_for_yes() { echo "no"; return 1 }
   $ cd .