One thing that annoys me when using the RSpec bundle for TextMate is the ‘it’ snippet. I think that any new spec should at least register as ‘Pending’ when it is run, not automatically pass. Having a blank test pass is really kind of dumb. So I’ve tweaked the ‘it’ snippet just a hair to automatically insert a ‘Pending’ statement into a newly created ‘it…do’ block. The description will be highlighted first, then the entire ‘pending’ statement so it will be easy to enter your data.
To use this snippet, just do CTRL + Command + Option + B in TextMate, go to the RSpec listing, and click on the ‘it’ snippet. Copy and paste the below text and you’re in business.
it "${0:should ${1:description}}" ${3:do
${2:pending("Needs to be written")}
end}













