Run all rspec specs with Sublime Text
To be able to run spec tests from within Sublime Text 2:
Menu choice: Tools > Build System > New Build System...
Then enter:
{
   "cmd": ["bundle", "exec", "rspec"],
   "working_dir": "${project_path:${folder}}",
   "file_regex": "^(...*?):([0-9]*):?([0-9]*)",
   "selector": "source.ruby"
 }Save your file in your user packages folder and restart Sublime Text.
On OSX its located at: ~/Library/Application Support/Sublime Text 3/Packages/User
Written by Javier Cervantes
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
 #Sublime text 
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#

 
 
 
 
