From c90b21fa310cb6e7d97d8a1d74fedd7d935585b0 Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Date: Thu, 26 Jul 2012 20:19:49 +0530 Subject: [PATCH] Tests for no_local_clone. --- tests/no_local_clone.t | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 tests/no_local_clone.t diff --git a/tests/no_local_clone.t b/tests/no_local_clone.t new file mode 100644 index 0000000..3e71216 --- /dev/null +++ b/tests/no_local_clone.t @@ -0,0 +1,36 @@ +Load the plugin with no local clone. + + $ antigen-bundle $PLUGIN_DIR --no-local-clone + +Check if the plugin is loaded correctly. + + $ hehe + hehe + +Confirm no clone is made. + + $ test -d dot-antigen + [1] + +Load the plugin with a clone. + + $ antigen-bundle $PLUGIN_DIR + Cloning into '*'... (glob) + done. + +Empty the record. + + $ _ANTIGEN_BUNDLE_RECORD= + +Load the plugin again with no local clone. + + $ antigen-bundle $PLUGIN_DIR --no-local-clone + +The cleanup should list the bundle's clone. + + $ antigen-cleanup --force + You have clones for the following repos, but are not used. + */test-plugin (glob) + + + Deleting clone for */test-plugin... done. (glob) -- 2.0.0