(Reposted as I accidentally responded to an existing thread)
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
So it is, and so I shall. Thanks for the pointer ;)
On Jan 26, 2008, at 11:06 PM, James Gray wrote:
On Jan 26, 2008, at 2:19 PM, Matt Darby wrote:
It seems to me that the RSpec bundle's 'it' snippet is in need of some love.
The RSpec bundle is maintained by the RSpec team. Please raise this issue on their mailing list.
James Edward Gray II
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate