Created
December 1, 2019 11:24
-
-
Save tmichel/7b924acaad68967a056541990997893e to your computer and use it in GitHub Desktop.
Sublime Text 3 Rails+Rspec project config template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"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