Skip to content

Instantly share code, notes, and snippets.

@tmichel
Created December 1, 2019 11:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmichel/7b924acaad68967a056541990997893e to your computer and use it in GitHub Desktop.
Save tmichel/7b924acaad68967a056541990997893e to your computer and use it in GitHub Desktop.
Sublime Text 3 Rails+Rspec project config template
{
"folders":
[
{
"path": "/path/to/project",
"folder_exclude_patterns": [
".vscode",
"tmp",
"vendor/bundle",
"log"
]
}
],
"build_systems":
[
{
"name": "RSpec: file",
"cmd": ["bin/rspec", "$file"],
"selector": "source.ruby.rspec",
"working_dir": "$folder",
"file_regex": "^rspec (.*):(\\d+)() # (.*)"
},
{
"name": "RSpec: corresponding spec",
"cmd": ["bin/rspec", "${file/(.*)\\/app\\/(.*)\\.rb$/$1\\/spec\\/$2_spec.rb/}"],
"selector": "source.ruby",
"working_dir": "$folder",
"file_regex": "^rspec (.*):(\\d+)() # (.*)"
},
{
"name": "Rspec: all",
"cmd": ["bin/rspec"],
"working_dir": "$folder"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment