RVMで環境構築しています。
現在利用しているのはRuby2.1+Rails4.1+Rspec3.2です。
[準備]
1)RubyTest と言うパッケージを導入する。
2)Preferences->Package Settings->RubyTest->Settings-Userを開く。
3)以下の設定内容を記載する。
{
"check_for_rvm": true,
"check_for_bundler": true,
"run_rspec_command": "rspec {relative_path}",
"run_single_rspec_command": "rspec {relative_path} -l{line_number}"
}
[実行]
Command-shift-R:現在の行のブロック内のテストを実行。
Commanfd-shift-T:現在のファイルのテストを全て実行。
Command-shift-E:最後に実行したテストを再実行。