Skip to content

Instantly share code, notes, and snippets.

@jcsrb
Last active December 14, 2015 18:19
Show Gist options
  • Save jcsrb/5128897 to your computer and use it in GitHub Desktop.
Save jcsrb/5128897 to your computer and use it in GitHub Desktop.
RubyTest Sublime Text settings for RVM with Bundler https://github.com/maltize/sublime-text-2-ruby-tests
/*
in case you get errors like this
ruby:1: Invalid char `\x7F' in expression
ruby:1: Invalid char `\x01' in expression
ruby:1: Invalid char `\x01' in expression
ruby:1: Invalid char `\x01' in expression
ruby:1:in `<main>': uninitialized constant ELF (NameError)
it is because ruby tries to interpret a binary file
*/
{
"erb_verify_command": "bundle exec erb -xT - {file_name} | ruby -c",
"ruby_verify_command": "bundle exec ruby -c {file_name}",
"run_ruby_unit_command": "bundle exec ruby -Itest {relative_path}",
"run_single_ruby_unit_command": "bundle exec ruby -Itest {relative_path} -n '{test_name}'",
"run_cucumber_command": "bundle exec cucumber {relative_path}",
"run_single_cucumber_command": "bundle exec cucumber {relative_path} -l{line_number}",
"run_rspec_command": "bundle exec rspec {relative_path}",
"run_single_rspec_command": "bundle exec rspec {relative_path} -l{line_number}",
"ruby_unit_folder": "test",
"ruby_cucumber_folder": "features",
"ruby_rspec_folder": "spec",
"check_for_rbenv": false,
"check_for_rvm": true,
"ruby_use_scratch" : false,
"save_on_run": true,
"ignored_directories": [".git", "vendor", "tmp"],
"hide_panel": false,
"before_callback": "",
"after_callback": ""
}
@danishsatkut
Copy link

Thanks solves the issue perfectly!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment