Browse files

Added more tests for the `-use` command.

  • Loading branch information...
1 parent 387fbc4 commit 942a7e4d88b25b096bf117c9107f468c0ce70687 @sharat87 sharat87 committed Mar 22, 2013
Showing with 29 additions and 13 deletions.
  1. +29 −13 tests/use.t
View
42 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 <library-name>
+ Where <library-name> 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 <library-name>
+ Where <library-name> 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.

0 comments on commit 942a7e4

Please sign in to comment.