Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RubyTest in Sublime Text 2

I am trying to get RubyTest to work in Sublime Text 2. I followed the Instruction on the Github Readme and get the following error. Does anyone know how I could fix this?

/bin/sh: rspec: command not found 
like image 979
ChuckJHardy Avatar asked Sep 22 '11 10:09

ChuckJHardy


1 Answers

To get this to work you only need to change one setting in the RubyTest package in sb2.

If you are using rvm, your rspec gem is installed through rvm and is not found in /bin/sh

So you need to set the RubyTest package for Sublime Text 2 to automatically check for your rvm environment variables.

What to change:

1) In Sublime Text 2, go to Preferences|Browse Packages. This will open up your packages directory.

2) Open the 'RubyTest' directory and look for the file 'RubyTest.sublime-settings'.

3) find the line that says:

"check_for_rvm": false, 

and change it to:

"check_for_rvm": true, 

save the change.

4) That's it. It should now work.

Good Luck

like image 198
sean lynch Avatar answered Sep 20 '22 02:09

sean lynch