Created
June 14, 2012 19:18
-
-
Save pmarreck/2932330 to your computer and use it in GitHub Desktop.
Add your project's load paths to the Ruby load paths, when you're anywhere in that project, via RVM's .rvmrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Put this at the end of your PROJECT .rvmrc (not your $HOME/.rvmrc!) | |
# add this project's paths to the $LOAD_PATH | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
export RUBYLIB="$DIR:$DIR/test:$DIR/lib" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This allows you to run any test directly (for example in Sublime Text 2 using command-B) without changing any require paths, for one thing.