Blame view

tests/use.t 739 Bytes
942a7e4d8   Shrikant Sharat   Added more tests ...
1
  Use unknown library.
da678afb2   Adam Stankiewicz   Introduce antigen...
2
3
  
    $ antigen-use unknown
942a7e4d8   Shrikant Sharat   Added more tests ...
4
5
    Usage: antigen-use <library-name>
    Where <library-name> is any one of the following:
da678afb2   Adam Stankiewicz   Introduce antigen...
6
7
8
     * oh-my-zsh
     * prezto
    [1]
942a7e4d8   Shrikant Sharat   Added more tests ...
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
  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.