LoginSignup
3
3

More than 5 years have passed since last update.

Sublime Text3 で Rspecを実行する

Last updated at Posted at 2015-06-13

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:最後に実行したテストを再実行。

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3