Hi Matt,
one way of doing this is to leave the block out and just write:
it "should bla bla"
No 'do', no 'end'. The example will be pending this way.
François
Matt Darby schrieb:
> 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 <http://www.dynamix-ltd.com>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> rspec-users mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/rspec-users
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users