Skip to content

Instantly share code, notes, and snippets.

@lucasmartins
Created March 30, 2015 19:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucasmartins/0cfe41830bcffa9c532f to your computer and use it in GitHub Desktop.
Save lucasmartins/0cfe41830bcffa9c532f to your computer and use it in GitHub Desktop.
RubyTest (SublimeText) config for chruby
{
"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": "source /usr/local/opt/chruby/share/chruby/chruby.sh && chruby `cat .ruby-version` && bundle exec rspec {relative_path}",
"run_single_rspec_command": "source /usr/local/opt/chruby/share/chruby/chruby.sh && chruby `cat .ruby-version` && bundle exec rspec {relative_path}:{line_number}",
"ruby_unit_folder": "test",
"ruby_cucumber_folder": "features",
"ruby_rspec_folder": "spec",
"check_for_rbenv": false,
"check_for_rvm": false,
"check_for_bundler": false,
"check_for_spring": false,
"ruby_use_scratch" : false,
"save_on_run": true,
"ignored_directories": [".git", "vendor", "tmp"],
"hide_panel": false,
"before_callback": "",
"after_callback": "",
"theme": "Packages/RubyTest/TestConsole.hidden-tmTheme",
"syntax": "Packages/RubyTest/TestConsole.tmLanguage"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment