RSpec Bundle for TextMate
9 comments Latest by Ben Fri, 06 Jun 2008 10:10:55 GMT
Just a quick follow up to my post last night, Sharing Custom TextMate Bundles with Subversion. It appears that I missed the RSpec bundle for TextMate, which is listed on the RSpec webpage.
Install the RSpec Bundle
Installation is quite simple, just change directories to your TextMate bundle directory.
$ cd ~/Library/Application\ Support/TextMate/Bundles/
Check out the RSpec bundle from the subversion repository.
$ svn co svn://rubyforge.org/var/svn/rspec/trunk/RSpec.tmbundle
# lots of files...
A RSpec.tmbundle/Support/spec/fixtures/example_failing_spec.rb
A RSpec.tmbundle/Support/spec/fixtures/example_passing_spec.rb
A RSpec.tmbundle/Support/spec/spec_mate_spec.rb
Checked out revision 1489.
Now, just reload your bundles in TextMate and you’re good to go!
Bundles > Bundle Editor > Reload Bundles
I’d like to thank Aslak Hellesøy for pointing me to this and for also providing me with the correct subversion URL, which is currently outdated on the RSpec page until the next release.
Enjoying the content? Be sure to subscribe to my RSS feed.






The rspec and ruby-debug bundles never leave my default install.
noice. Hadn’t got round to installing that one yet.
I’m slightly confused about how TextMate deals with the various types of bundles (global, local, edited, etc.). From my rather poor understanding of this, I can’t see why you would put it in
rather than
I’m interested to know how all this stuff works :-)
Sam,
Yeah, it can be a little confusing. :-)
When you create your own bundle, it saves it to the first directory path, which means that it’s a local user path. The documentation on the TextMate site also tell you to put it there. Beyond that… I’m just doing what I’ve been told to do. ;-)
Thanks for the help Robby :-)
I also noticed that Typos seems to have eaten the tilde on both of the paths above, oh the confusion, the confusion!
I’m not too worried about getting things to work (I’m sure TextMate doesn’t really care which directory the bundle is in too much, and so things should pretty much just work). However, I am concerned about making sure I know how to update all this stuff.
Currently my global bundle directory
contains a svn co of the TM bundle repository
My local bundle directory:
contains bundles I’ve downloaded as files and double-clicked to install. Finally,
contains my own personal bundles which I created using the bundle editor.
At the moment I have a command: `mateup`, which checks out the latest copy of the TM bundles. However, if I start adding other svn stored bundles, I’d want my `mateup` command to keep those up to date too.
I’m currently thinking that I should probably keep all the external svn bundles in the global bundle directory, and keep all the personal bespoke stuff in my local bundle directories.
However I’m interested in how other people manage this stuff too :-)
I get errors when I run my specs and have to run them from iterm to get them to work.
Thank you so much for sharing this. I was really irritated when I started using RSpec and typed describe and hit tab without thinking and got a tab. :)
Thanks!
Thanks Robby, this was really helpful although it seems out of date. I wrote a quick blog entry for getting the latest bundle:
http://blog.emson.co.uk/2008/06/installing-the-latest-rspec-textmate-bundle/
Thanks, Ben…