public
Description: Auto-generate RSpec view specs by interrogating your existing views.
Homepage: http://hashrocket.com/
Clone URL: git://github.com/hashrocket/view_specify.git
name age message
file MIT-LICENSE Tue Sep 09 20:16:43 -0700 2008 tweaked copy [l4rk]
file README.textile Tue Sep 09 20:43:05 -0700 2008 zach has me afraid of robots, removing email links [l4rk]
file Rakefile Tue Sep 09 20:16:57 -0700 2008 removed rdoc [l4rk]
directory generators/ Tue Sep 09 20:34:30 -0700 2008 switch from haml to erb for public consumption,... [l4rk]
file init.rb Fri Sep 05 12:18:53 -0700 2008 initial commit [l4rk]
directory test/ Fri Sep 05 12:18:53 -0700 2008 initial commit [l4rk]
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