From 8e3f27d94151e3682cfb67b523cb43e859f7514c Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Date: Fri, 13 Jul 2012 22:19:03 +0530 Subject: [PATCH] Added tests for the wrapper command syntax. --- Makefile | 2 +- tests/antigen-wrapper.t | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 tests/antigen-wrapper.t diff --git a/Makefile b/Makefile index 4883176..f4e0688 100644 --- a/Makefile +++ b/Makefile @@ -2,4 +2,4 @@ tests: ZDOTDIR="${PWD}/tests" cram -i --shell=zsh tests/branch-bundle.t \ - tests/bundle.t tests/url-resolver.t + tests/bundle.t tests/url-resolver.t tests/antigen-wrapper.t diff --git a/tests/antigen-wrapper.t b/tests/antigen-wrapper.t new file mode 100644 index 0000000..a88f59f --- /dev/null +++ b/tests/antigen-wrapper.t @@ -0,0 +1,21 @@ +Create a dummy antigen command. + + $ antigen-dummy () { + > echo me dummy + > } + +Check the normal way of calling it + + $ antigen-dummy + me dummy + +Call with the wrapper syntax. + + $ antigen dummy + me dummy + +Call with an alias + + $ alias a=antigen + $ a dummy + me dummy -- 2.0.0