Skip to content

Commit

Permalink
Merge branch 'master' of github.com:wayneeseguin/rvm-test
Browse files Browse the repository at this point in the history
  • Loading branch information
Deryl R. Doucette committed Mar 29, 2012
2 parents 91328cb + 459fffe commit b6e40e5
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions fast/rvmrc-create_comment_test.sh
@@ -0,0 +1,43 @@
source "$rvm_path/scripts/rvm"

: prepare
true TMPDIR:${TMPDIR:=/tmp}:
d=$TMPDIR/test-rvmrc
mkdir $d
pushd $d
rvm use 1.8.7

: .rvmrc
rvm rvmrc create 1.9.3
rvm rvmrc trust .
[ -f .rvmrc ] # status=0
rvm current # match=/1.8.7/
cd .
rvm current # match=/1.9.3/

rm -f .rvmrc
rvm use 1.8.7

: .versions.conf
rvm rvmrc create 1.9.3 .versions.conf
[ -f .versions.conf ] # status=0
rvm current # match=/1.8.7/
cd .
rvm current # match=/1.9.3/

rm -f .versions.conf
rvm use 1.8.7

: .ruby-version
rvm rvmrc create 1.9.3 .ruby-version
[ -f .ruby-version ] # status=0
rvm current # match=/1.8.7/
cd .
rvm current # match=/1.9.3/

rm -f .ruby-version
rvm use 1.8.7

: clean
popd
rm -rf $d

0 comments on commit b6e40e5

Please sign in to comment.