Last Updated: February 25, 2016
· solojavier

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