Commit 8a241a16785a53023dfaa215cc6d810df3bf3de1

Authored by Shrikant Sharat
1 parent fee42de18a

Refactoring and a small new test.

Showing 2 changed files with 42 additions and 36 deletions Side-by-side Diff

... ... @@ -0,0 +1,42 @@
  1 +Load plugin from master.
  2 +
  3 + $ antigen-bundle $PLUGIN_DIR
  4 + Cloning into '.+?'\.\.\. (re)
  5 + done.
  6 + $ hehe
  7 + hehe
  8 +
  9 +Load the plugin again. Just to see nothing happens.
  10 +
  11 + $ antigen-bundle $PLUGIN_DIR
  12 + $ hehe
  13 + hehe
  14 +
  15 +Update the plugin.
  16 +
  17 + $ cat > $PLUGIN_DIR/aliases.zsh <<EOF
  18 + > alias hehe='echo hehe, updated'
  19 + > EOF
  20 + $ pg commit -am 'Updated message'
  21 + \[master [a-f0-9]{7}\] Updated message (re)
  22 + 1 file changed, 1 insertion(+), 1 deletion(-)
  23 +
  24 +Update bundles.
  25 +
  26 + $ antigen-update
  27 + From \S+? (re)
  28 + [a-z0-9]{7}\.\.[a-z0-9]{7} master -> origin/master (re)
  29 + Updating [a-z0-9]{7}\.\.[a-z0-9]{7} (re)
  30 + Fast-forward
  31 + aliases.zsh | 2 +-
  32 + 1 file changed, 1 insertion(+), 1 deletion(-)
  33 +
  34 +Confirm there is still only one repository.
  35 +
  36 + $ ls $ADOTDIR/repos | wc -l
  37 + 1
  38 +
  39 +The new alias should not activate.
  40 +
  41 + $ hehe
  42 + hehe
tests/update.t
... ... @@ -1,36 +0,0 @@
1   -Load plugin from master.
2   -
3   - $ antigen-bundle $PLUGIN_DIR
4   - Cloning into '.+?'\.\.\. (re)
5   - done.
6   - $ hehe
7   - hehe
8   -
9   -Update the plugin.
10   -
11   - $ cat > $PLUGIN_DIR/aliases.zsh <<EOF
12   - > alias hehe='echo hehe, updated'
13   - > EOF
14   - $ pg commit -am 'Updated message'
15   - \[master [a-f0-9]{7}\] Updated message (re)
16   - 1 file changed, 1 insertion(+), 1 deletion(-)
17   -
18   -Update bundles.
19   -
20   - $ antigen-update
21   - From \S+? (re)
22   - [a-z0-9]{7}\.\.[a-z0-9]{7} master -> origin/master (re)
23   - Updating [a-z0-9]{7}\.\.[a-z0-9]{7} (re)
24   - Fast-forward
25   - aliases.zsh | 2 +-
26   - 1 file changed, 1 insertion(+), 1 deletion(-)
27   -
28   -Confirm there is still only one repository.
29   -
30   - $ ls $ADOTDIR/repos | wc -l
31   - 1
32   -
33   -The new alias should not activate.
34   -
35   - $ hehe
36   - hehe