jump to navigation

Find missing RSpec view tests March 16, 2009

Posted by John Dewey in Code, Rake, RSpec.
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 
About these ads

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.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: