SublimeTextにRubyTestプラグインを入れてRspec実行してみたら"/bin/sh: bundle: command not found"ってエラーが出た
タイトルの通り
rspecを実行するときに、terminalからbundle exec rspec
を毎回実行するのがめんどい。
っつーことで、SublimeTextから実行できないか調べてみたらやっぱりあったよプラグイン。
入れて実行したら/bin/sh: bundle: command not found
ってエラーが発生。
rbenv使ってるから"check_for_rbenv": true,
の設定を入れて実行。
はい、またエラー><
今度は、Prepending
bundle execto your command may solve this.
って感じ。
bundle exec通して実行してないから、rspec-coreのバージョンがGemfileのバージョンとあってないから起きてるっぽいけど、結局下の設定にして力技?で回避することに。
RubyTest.sublime-settings - User
{
"check_for_rbenv": true,
"run_rspec_command": "bundle exec rspec {relative_path}",
"run_single_rspec_command": "bundle exec rspec {relative_path} -l{line_number}"
}