Browse files

assert creation of the profile.d script

  • Loading branch information...
1 parent 9aacac8 commit c269de9a13e526c072b6b0484df16e730f38efd4 @ddollar ddollar committed Jul 15, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 bin/test
View
7 bin/test
@@ -47,6 +47,13 @@ testNothingCached() {
assertEquals "0" "$(ls -1 $cache | wc -l)"
}
+testProfileCreated() {
+ compile "package-json-version"
+ assertCaptured "Building runtime environment"
+ assertFile "export PATH=\"\$HOME/bin:\$HOME/node_modules/.bin:\$PATH\"" "profile.d/nodejs.sh"
+ assertCapturedSuccess
+}
+
## utils ########################################
pushd $(dirname 0) >/dev/null

0 comments on commit c269de9

Please sign in to comment.