diff --git a/tests/use.t b/tests/use.t index ad8499b..2231e8c 100644 --- a/tests/use.t +++ b/tests/use.t @@ -1,19 +1,35 @@ -Load unknown library. +Use unknown library. $ antigen-use unknown - Antigen currently supports only following libraries: + Usage: antigen-use + Where is any one of the following: * oh-my-zsh * prezto [1] -# Fixme: loading prezto or oh-my-zsh library breaks all the tests. -# -# Load prezto library. -# -# $ antigen-use prezto &> /dev/null -# $ antigen-bundle git &> /dev/null -# -# Load oh-my-zsh library. -# -# $ antigen-use oh-my-zsh &> /dev/null -# $ antigen-bundle git &> /dev/null +Missing argument. + + $ antigen-use + Usage: antigen-use + Where is any one of the following: + * oh-my-zsh + * prezto + [1] + +Mock out the library loading functions. + + $ -antigen-use-oh-my-zsh () { echo Using oh-my-zsh. } + $ -antigen-use-prezto () { echo Using prezto. } + +Note: We lack tests for these internal functions. I'm not sure how feasible +testing them is given they most certainly use the network. + +Use oh-my-zsh library. + + $ antigen-use oh-my-zsh + Using oh-my-zsh. + +Use prezto library. + + $ antigen-use prezto + Using prezto.