Blame view

tests/update.t 734 Bytes
e0d9ad45a   Shrikant Sharat   Fix #9 Add test f...
1
  Load plugin from master.
293eecb90   Shrikant Sharat   Remove hard coded...
2
    $ antigen-bundle $PLUGIN_DIR
e0d9ad45a   Shrikant Sharat   Fix #9 Add test f...
3
4
5
6
7
8
    Cloning into '.+?'\.\.\. (re)
    done.
    $ hehe
    hehe
  
  Update the plugin.
293eecb90   Shrikant Sharat   Remove hard coded...
9
    $ cat > $PLUGIN_DIR/aliases.zsh <<EOF
e0d9ad45a   Shrikant Sharat   Fix #9 Add test f...
10
11
12
13
14
15
16
17
18
    > alias hehe='echo hehe, updated'
    > EOF
    $ pg commit -am 'Updated message'
    \[master [a-f0-9]{7}\] Updated message (re)
     1 file changed, 1 insertion(+), 1 deletion(-)
  
  Update bundles.
  
    $ antigen-update
293eecb90   Shrikant Sharat   Remove hard coded...
19
    From \S+? (re)
e0d9ad45a   Shrikant Sharat   Fix #9 Add test f...
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
       [a-z0-9]{7}\.\.[a-z0-9]{7}  master     -> origin/master (re)
    Updating [a-z0-9]{7}\.\.[a-z0-9]{7} (re)
    Fast-forward
     aliases.zsh |    2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
  
  Confirm there is still only one repository.
  
    $ ls $ADOTDIR/repos | wc -l
    1
  
  The new alias should not activate.
  
    $ hehe
    hehe