https://github.com/hashrocket/view_specify
Auto-generate RSpec view specs by interrogating your existing views.
https://github.com/hashrocket/view_specify
Last synced: 8 months ago
JSON representation
Auto-generate RSpec view specs by interrogating your existing views.
- Host: GitHub
- URL: https://github.com/hashrocket/view_specify
- Owner: hashrocket
- License: mit
- Created: 2008-09-05T19:22:18.000Z (almost 18 years ago)
- Default Branch: master
- Last Pushed: 2008-09-10T03:43:23.000Z (almost 18 years ago)
- Last Synced: 2025-04-14T00:17:05.468Z (about 1 year ago)
- Language: Ruby
- Homepage: http://hashrocket.com/
- Size: 84 KB
- Stars: 54
- Watchers: 10
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.textile
- License: MIT-LICENSE
Awesome Lists containing this project
README
h1. 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 @--force@ option 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 (c) 2008 Obie Fernandez, Jon "Lark" Larkowski, and "Hashrocket":http://www.hashrocket.com/, released under the MIT license