SublimeTextにRubyTestプラグインを入れてRspec実行してみたら"/bin/sh: bundle: command not found"ってエラーが出た

タイトルの通り

rspecを実行するときに、terminalからbundle exec rspecを毎回実行するのがめんどい。

っつーことで、SublimeTextから実行できないか調べてみたらやっぱりあったよプラグイン

RubyTest

入れて実行したら/bin/sh: bundle: command not foundってエラーが発生。

rbenv使ってるから"check_for_rbenv": true,の設定を入れて実行。

はい、またエラー><

今度は、Prependingbundle 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}"
}