Commit c90b21fa310cb6e7d97d8a1d74fedd7d935585b0
1 parent
0efbfc3261
Tests for no_local_clone.
Showing 1 changed file with 36 additions and 0 deletions Inline Diff
tests/no_local_clone.t
File was created | 1 | Load the plugin with no local clone. | |
2 | |||
3 | $ antigen-bundle $PLUGIN_DIR --no-local-clone | ||
4 | |||
5 | Check if the plugin is loaded correctly. | ||
6 | |||
7 | $ hehe | ||
8 | hehe | ||
9 | |||
10 | Confirm no clone is made. | ||
11 | |||
12 | $ test -d dot-antigen | ||
13 | [1] | ||
14 | |||
15 | Load the plugin with a clone. | ||
16 | |||
17 | $ antigen-bundle $PLUGIN_DIR | ||
18 | Cloning into '*'... (glob) | ||
19 | done. | ||
20 | |||
21 | Empty the record. | ||
22 | |||
23 | $ _ANTIGEN_BUNDLE_RECORD= | ||
24 | |||
25 | Load the plugin again with no local clone. | ||
26 | |||
27 | $ antigen-bundle $PLUGIN_DIR --no-local-clone | ||
28 | |||
29 | The cleanup should list the bundle's clone. | ||
30 | |||
31 | $ antigen-cleanup --force | ||
32 | You have clones for the following repos, but are not used. | ||
33 | */test-plugin (glob) | ||
34 | |||
35 | |||
36 | Deleting clone for */test-plugin... done. (glob) | ||
37 |