[rspec-users] Best Practice for Controllers

Nick nick at deadorange.com
Mon Jan 17 13:33:27 EST 2011

That behaviour exists in ApplicationController. Since 
ProductGroupsController inherits that behaviour from ApplicationController, 
the specs for ProductGroupsController should cover that behaviour.

To keep your code DRY, create a shared example group that can be used in 
multiple controller specs. Eg:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20110117/72673e20/attachment.html>

More information about the rspec-users mailing list