From 530f79bd2a3185756746d4a9f0c69d5d68e5e8f2 Mon Sep 17 00:00:00 2001 From: Daniel Bretoi Date: Sat, 5 Jul 2014 16:07:07 -0700 Subject: [PATCH] add test for linking current path --- "test/fast/Running \"nvm use\" should link current path." | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 "test/fast/Running \"nvm use\" should link current path." diff --git "a/test/fast/Running \"nvm use\" should link current path." "b/test/fast/Running \"nvm use\" should link current path." new file mode 100755 index 0000000..e311916 --- /dev/null +++ "b/test/fast/Running \"nvm use\" should link current path." @@ -0,0 +1,7 @@ +#!/bin/bash + +cd ../.. +. ./nvm.sh +mkdir v0.10.10 +nvm use 0.10 +[ "$(ls -ld current | cut -d ' ' -f 13,15 && rm -rf current v0.10.10)" = "current $NVM_DIR/v0.10.10" ]