Skip to content

Instantly share code, notes, and snippets.

@hamstu
Created July 25, 2013 17:17
Show Gist options
  • Save hamstu/6081867 to your computer and use it in GitHub Desktop.
Save hamstu/6081867 to your computer and use it in GitHub Desktop.
##### starting test path_mismatch.
$ source "$rvm_path/scripts/rvm"
$ : test no error
$ rvm use 1.9.3 --install
Using /Users/hamstu/.rvm/gems/ruby-1.9.3-p448
# passed: status = 0
$ rvm version
rvm 1.21.14 (stable) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/]
# passed: match != /is not at first place/
# passed: match != /is not available/
$ : test GEM_HOME second
$ rvm use 1.9.3
Using /Users/hamstu/.rvm/gems/ruby-1.9.3-p448
# passed: status = 0
$ GEM_HOME=$GEM_HOME@global
$ rvm version
Warning! PATH is not properly set up, '/Users/hamstu/.rvm/gems/ruby-1.9.3-p448@global/bin' is not at first place,
usually this is caused by shell initialization files - check them for 'PATH=...' entries,
to fix run: 'rvm use ruby-1.9.3-p448@global'.
rvm 1.21.14 (stable) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/]
# passed: match = /is not at first place/
$ : test GEM_HOME missing
$ rvm use 1.9.3
Warning! PATH is not properly set up, '/Users/hamstu/.rvm/gems/ruby-1.9.3-p448@global/bin' is not at first place,
usually this is caused by shell initialization files - check them for 'PATH=...' entries,
to fix run: 'rvm use ruby-1.9.3-p448@global'.
Using /Users/hamstu/.rvm/gems/ruby-1.9.3-p448
# passed: status = 0
$ GEM_HOME=$GEM_HOME@veve
$ rvm version
Warning! PATH is not properly set up, '/Users/hamstu/.rvm/gems/ruby-1.9.3-p448@veve/bin' is not available,
usually this is caused by shell initialization files - check them for 'PATH=...' entries,
to fix run: 'rvm use ruby-1.9.3-p448@veve'.
rvm 1.21.14 (stable) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/]
# passed: match = /is not available/
$ : rvm-shell check
$ rvm use 1.9.3
Warning! PATH is not properly set up, '/Users/hamstu/.rvm/gems/ruby-1.9.3-p448@veve/bin' is not available,
usually this is caused by shell initialization files - check them for 'PATH=...' entries,
to fix run: 'rvm use ruby-1.9.3-p448@veve'.
Using /Users/hamstu/.rvm/gems/ruby-1.9.3-p448
# passed: status = 0
$ GEM_HOME=$GEM_HOME@veve
$ rvm-shell 1.9.3 -c 'true'
# passed: match != /is not at first place/
# passed: match != /is not available/
##### Processed commands 16 of 16, success tests 10 of 10.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment