From 78c1f2cf9d4b8bd6a57621390021ab0eaca1dc50 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Fri, 16 Jan 2015 15:36:32 -0600 Subject: [PATCH] Split up this `nvm current` and `node 0.6.21-pre` test into separate tests. --- ... current\" should display current nvm environment." | 5 ----- test/slow/node 0.6.21 should install 0.6.21-pre | 10 ++++++++++ 2 files changed, 10 insertions(+), 5 deletions(-) create mode 100755 test/slow/node 0.6.21 should install 0.6.21-pre diff --git "a/test/slow/Running \"nvm current\" should display current nvm environment." "b/test/slow/Running \"nvm current\" should display current nvm environment." index bf43802..05082e3 100755 --- "a/test/slow/Running \"nvm current\" should display current nvm environment." +++ "b/test/slow/Running \"nvm current\" should display current nvm environment." @@ -7,8 +7,3 @@ die () { echo $@ ; exit 1; } nvm install 0.10 [ "$(nvm current)" = "$(node -v)" ] || die "Failed to find current version: got \"$(nvm current)\", expected \"$(node -v)\"" - -nvm install 0.6.21 -[ "$(node -v)" = "v0.6.21-pre" ] || die "v0.6.21-pre not installed with v0.6.21" -[ "$(nvm current)" = "v0.6.21" ] || die "v0.6.21-pre not reported as v0.6.21" - diff --git a/test/slow/node 0.6.21 should install 0.6.21-pre b/test/slow/node 0.6.21 should install 0.6.21-pre new file mode 100755 index 0000000..412ecfa --- /dev/null +++ b/test/slow/node 0.6.21 should install 0.6.21-pre @@ -0,0 +1,10 @@ +#!/bin/sh + +die () { echo $@ ; exit 1; } + +. ../../nvm.sh + +nvm install 0.6.21 +[ "$(node -v)" = "v0.6.21-pre" ] || die "v0.6.21-pre not installed with v0.6.21" +[ "$(nvm current)" = "v0.6.21" ] || die "v0.6.21-pre not reported as v0.6.21" +