Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Auto-generate RSpec view specs by interrogating your existing views.

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 generators
Octocat-spinner-32 test
Octocat-spinner-32 MIT-LICENSE
Octocat-spinner-32 README.textile
Octocat-spinner-32 Rakefile
Octocat-spinner-32 init.rb


That’s “speck-a-fie.” This plugin auto-generates RSpec view specs by interrogating your existing
views. It looks through your views, mocking all instance variables and stubbing all helper method
calls and routes off template.

Pardon our dust; this is alpha software. But, it serves as a handy, time-saving first pass at
writing your view specs.

You can add extra template stubs, if you need, with the --stubs option.

Current limitations:

  1. you have to add the --force option for subsequent runs
  2. mocking “dot chains” doesn’t work right now

      ./script/generate view_specify [--stubs=stub1,stub2,stub3]

      This will create:

Copyright © 2008 Obie Fernandez, Jon “Lark” Larkowski, and Hashrocket, released under the MIT license

Something went wrong with that request. Please try again.