Sublime Forum

ST3: Making rspec work with RVM

#1

When I do cmd-B on an rspec file, the default builder is run and gives me this error message:

[Errno 2] No such file or directory: ‘rspec’
[cmd: [‘rspec’, ‘-I /Volumes/MonsterHD/mydev/repsurv/spec/services’, ‘/Volumes/MonsterHD/mydev/repsurv/spec/services/program_services_spec.rb’]]
[dir: /Volumes/MonsterHD/mydev/repsurv]
[path: /usr/bin:/bin:/usr/sbin:/sbin]
[Finished]

Because I am using rvm. Is there a way for me to change the default command run by command-B in ST3? Because there’s no apparent separate package or other file that I can edit to change that default. Maybe it’s coming or maybe I am just looking in the wrong place?

Thank you!

0 Likes