[rspec-users] Controller spec: testing that scope is set

Zach Dennis zach.dennis at gmail.com
Sun Apr 19 12:32:49 EDT 2009

On Sun, Apr 19, 2009 at 12:27 PM, Michael Schuerig <michael at schuerig.de> wrote:
> In a Rails controller I set the scope on a model class in an around
> filter. I have defined expectations on the model classes, and ideally, I
> would add a further expectation for the scope. Is this already possible
> in some way? How would I go about adding support a scope expectation?

How are you setting the said scope?

> Michael
> --
> Michael Schuerig
> mailto:michael at schuerig.de
> http://www.schuerig.de/michael/
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users

Zach Dennis

More information about the rspec-users mailing list