Rails plugin that provides rake tasks for identifying missing specs

I have a bad habbit of generating my views while specing the controller and then never generating a view spec.
I wrote a rake task to tell me which views have no specs, kind of like a rcov for views.

I then realised that it could be useful to find all files with missing specs so now we have unspec’d, a Rails plugin that provides rake tasks for identifying missing specs

Comments (3)

iainJune 18th, 2009 at 10:39

Too bad unspecd is unspec’d ;)

John GrimesJune 19th, 2009 at 15:54

Dead simple, and extremely useful.

Thanks, I love it and have installed it into all my rails projects.

Andrew TimberlakeJune 22nd, 2009 at 15:00

@iain - That’s what happens when you work too quickly :-) but good point!
I read a good article on keeping the logic within your rake tasks in libraries for easier testing and then just call the library from the rake task.

@john Thanks, hope it helps