{
"env":{
"PATH":"${HOME}/.rvm/bin:${PATH}"
},
"cmd": ["rvm-auto-ruby", "$file"],
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": "source.ruby"
}
Copy this file to your rvm.sublime.build file.
For more info: Sublime Text 2 Integration With RVM and Rspec: Take Number 2