Find file
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (28 sloc) 1.49 KB

RSpec TextMate Bundle

TextMate Bundle for RSpec-1 and RSpec-2

This TMBundle works with both rspec-1 and rspec-2. Given that they work differently, the TMBundle tries its best to figure out which one you're using in each project.

If you're using Bundler in your project, the TMBundle will always do the right thing based on the version of RSpec specified in your Gemfile.

If you're not using Bundler, the TMBundle tries to do the right thing based the presence of assorted files and paths in your project. Obviously, everybody's environment is going to be a bit different, so let us know if this doesn't work for you by filing an issue at and we'll do our best to resolve the situation.


cd ~/Library/Application\ Support/TextMate/Bundles/
git clone git:// RSpec.tmbundle
osascript -e 'tell app "TextMate" to reload bundles'


The RSpec TextMate bundle does not require "rubygems" so that users who choose other packaging mechanisms can still use it. If you are using Rubygems as your package manager, then the simplest thing to do is

  • open up TextMate Preferences
  • go to the Advanced tab
  • add a variable named RUBYOPT with the value rubygems


Parts of RSpec.tmbundle is based on Florian Weber's TDDMate.


The license of RSpec.tmbundle is the same as RSpec's.