This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | Tue Sep 09 20:16:43 -0700 2008 | |
| |
README.textile | Tue Sep 09 20:43:05 -0700 2008 | |
| |
Rakefile | ||
| |
generators/ | Tue Sep 09 20:34:30 -0700 2008 | |
| |
init.rb | Fri Sep 05 12:18:53 -0700 2008 | |
| |
test/ | Fri Sep 05 12:18:53 -0700 2008 |
README.textile
view_specify
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:
- you have to add the
--forceoption for subsequent runs - mocking “dot chains” doesn’t work right now
Example:
./script/generate view_specify [--stubs=stub1,stub2,stub3]
This will create:
spec/views/[each_view_dir]/[each_view]
Copyright © 2008 Obie Fernandez, Jon “Lark” Larkowski, and Hashrocket, released under the MIT license








