jump to navigation

Find missing RSpec view tests March 16, 2009

Posted by John Dewey in Code, RSpec, Rake.
trackback

I created a quick little rake task which finds missing RSpec view tests. It assumes the extension is .haml, however, this can be overridden with the EXTENSION environment variable.

rake spec:missing_view_templates
or
EXTENSION=erb rake spec:missing_view_templates

Comments»

1. pragmatig - March 25, 2009

maybe this could be made mor universal by aggregating all paths (regardless of extension) and then matching this list with spec files ?

2. John Dewey - March 25, 2009

Yeah, it probably could. Feel free to fork it and post a follow-up.