If you are using TextMate on your Apple Mac you may wish to download the RSpec TextMate Bundle and install it. The TextMate bundle can be found in the RSpec Git repository. In your Terminal.app enter the following commands. Please note that you will need Git installed on your Apple Mac in order to do this, please see my article Installing Git on Apple OSX on how to do this:
cd /Applications/TextMate.app/Contents/SharedSupport/Bundles
git clone git://github.com/dchelimsky/rspec-tmbundle.git RSpec.tmbundle
You should get output like this in your Terminal window:
Initialized empty Git repository in /Applications/TextMate.app/Contents/SharedSupport/Bundles/RSpec.tmbundle/.git/
remote: Counting objects: 46199, done.
remote: Compressing objects: 100% (10514/10514), done.
Indexing 46199 objects...
remote: Total 46199 (delta 33049), reused 46199 (delta 33049)
100% (46199/46199) done
Resolving 33049 deltas...
100% (33049/33049) done
Now you will need to reload your TextMate Bundle Editor for this new bundle to be applied. In TextMate select the following menu items and button:
Bundles > Bundle Editor > Reload Bundles
If you ever need to get a more uptodate version of the RSpec.tmbundle then simply navigate to your TextMate Bundle directory and use Git to pull the latest version down to your machine. Don’t forget to reload your bundles once this has been done. To pull the latest version from the Git hub use this command:
git pull
For older instructions on how to do this see Robby on Rails - RSpec Bundle for TextMate
[...] Finally if you are an Apple user and are using TextMate you might want to read my article on how to install the TextMate RSpec bundle. [...]
Thanks — I’d cloned the repo from GitHub, but couldn’t figure out why it wasn’t loading into Textmate… I came across your instructions and noticed that since I hadn’t specified a destination directory I needed to rename the directory (to a .tmbundle extension):
mv rspec-tmbundle/ RSpec.tmbundle
Now it gets loaded into Textmate correctly. It makes sense, but it escaped my attention till reading your instructions.
[...] 6. If you use Textmate install RSpec bundle for Textmate: http://blog.emson.co.uk/2008/06/installing-the-latest-rspec-textmate-bundle/ [...]
Thanks!
Thanks!
Thanks - that came handy.
The correct location of custom bundles is: ~/Library/Application Support/TextMate/Bundles
otherwise, when you upgrade TextMate, you will lose your custom bundles!