[rspec-users] Specs for ApplicationController, where to put them?

Wincent Colaiuta win at wincent.com
Thu May 24 04:27:55 EDT 2007


El 24/5/2007, a las 9:18, Tim Lucas escribió:

> I did it a slighty dodgy way (spec/controllers/
> application_controller_spec.rb):
> http://pastie.caboo.se/64123

First, thanks for the advice!

Why do you say "dodgy"?

> but nowadays you can probably use a shared spec, like so (require'd
> from your spec helper):

Probably not a bad idea. In that way you'd get confirmation that no  
subclass is overriding the behaviour of the superclass in unexpected  
ways.

Cheers,
Wincent





More information about the rspec-users mailing list