Permalink
Browse files

Updating readme for spin

  • Loading branch information...
1 parent 5bcf317 commit afd1e18fe5575d38893a327ff84a04a06329a1b7 @gja gja committed Aug 22, 2012
Showing with 50 additions and 8 deletions.
  1. +50 −8 README.md
View
@@ -76,20 +76,62 @@ If this will not help provide to us debug informations using (CTRL + ` )
Please open an issue at https://github.com/maltize/sublime-text-2-ruby-tests if you discover a problem or would like to see a feature/change implemented.
-Bundler support:
-------------
-First be sure that you have your copy of `RubyTest.sublime-settings` placed in User folder (refer to Settings above) and fill it with below code:
+
+Settings:
+---------
{
- "erb_exec": "bundle exec erb",
- "ruby_unit_exec": "bundle exec ruby",
- "ruby_cucumber_exec": "bundle exec cucumber -f pretty",
- "ruby_rspec_exec": "bundle exec rspec",
+ "erb_verify_command": "erb -xT - {file_name} | ruby -c",
+ "ruby_verify_command": "ruby -c {file_name}",
+
+ "run_ruby_unit_command": "ruby -Itest {relative_path}",
+ "run_single_ruby_unit_command": "ruby -Itest {relative_path} -n '{test_name}'",
+
+ "run_cucumber_command": "cucumber {relative_path}",
+ "run_single_cucumber_command": "cucumber {relative_path} -l{line_number}",
+
+ "run_rspec_command": "rspec {relative_path}",
+ "run_single_rspec_command": "rspec {relative_path} -l{line_number}",
"ruby_unit_folder": "test",
"ruby_cucumber_folder": "features",
"ruby_rspec_folder": "spec",
"ruby_use_scratch" : false,
- "save_on_run": false
+ "save_on_run": false,
+ "ignored_directories": [".git", "vendor", "tmp"]
}
+
+Bundler support:
+----------------
+First be sure that you have your copy of `RubyTest.sublime-settings` placed in User folder (refer to Settings above) and replace each prefix each command with "bundle exec". ex:
+
+ "run_rspec_command": "bundle exec rspec {relative_path}"
+
+
+Spin support:
+-------------
+
+First be sure that you have your copy of `RubyTest.sublime-settings` placed in User folder (refer to Settings above) and replace the following settings. ex:
+
+ {
+ "erb_verify_command": "erb -xT - {file_name} | ruby -c",
+ "ruby_verify_command": "ruby -c {file_name}",
+
+ "run_ruby_unit_command": "spin push -Itest {relative_path}",
+ "run_single_ruby_unit_command": "ruby -Itest {relative_path} -n '{test_name}'",
+
+ "run_cucumber_command": "cucumber {relative_path}",
+ "run_single_cucumber_command": "cucumber {relative_path} -l{line_number}",
+
+ "run_rspec_command": "spin push {relative_path}",
+ "run_single_rspec_command": "spin push {relative_path} -l{line_number}",
+
+ "ruby_unit_folder": "test",
+ "ruby_cucumber_folder": "features",
+ "ruby_rspec_folder": "spec",
+
+ "ruby_use_scratch" : false,
+ "save_on_run": false,
+ "ignored_directories": [".git", "vendor", "tmp"]
+ }

0 comments on commit afd1e18

Please sign in to comment.