github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

hashrocket / view_specify

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 86
    • 3
  • Source
  • Commits
  • Network (3)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

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

  cancel

http://hashrocket.com/

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

zach has me afraid of robots, removing email links 
l4rk (author)
Tue Sep 09 20:43:05 -0700 2008
commit  2939f2a4a71991185b35fe72ebd431cb47732b57
tree    ff807f9ab3a9bbbbc46d922b660b67968f38e659
parent  eef92d263bdfb2cc8c21601cb4ff27c8acc7db43
view_specify /
name age
history
message
file MIT-LICENSE Loading commit data...
file README.textile
file Rakefile
directory generators/
file init.rb
directory test/
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:

  1. you have to add the --force option for subsequent runs
  2. 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

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server