[rspec-users] Textmate RSpec Bundle 'it' snippet

Matt Darby matt at matt-darby.com
Sun Jan 27 01:50:29 EST 2008


It seems to me that the RSpec bundle's 'it' snippet is in need of some  
love. By default, a newly inserted spec passes. This seems odd as it  
is misleading. It also makes it harder find what specs still need to  
be completed if you return to an RSpec module after a break.

I propose that the 'it' snippet is changed to the following:

it "${0:should ${1:description}}" ${3:do
   ${2:pending("Needs to be written")}
end}

This tweak simply adds a 'pending' statement as the body of a newly  
created spec. When run, the tester will be alerted to an unfinished  
test.

Thoughts?

Thanks!

Matt Darby, M.S.
IT Manager / Lead Web Developer

Dynamix Engineering Ltd.
1108 City Park Ave.
Columbus, OH 43206
Cell: (614) 403-5289
www.dynamix-ltd.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20080127/6907e92e/attachment.html 


More information about the rspec-users mailing list