[rspec-users] testing named_scope

Michael Guterl mguterl at gmail.com
Sat Jan 23 09:16:42 EST 2010

On Sun, Jan 17, 2010 at 9:17 PM, Nin <npdepolonia at gmail.com> wrote:
> Hi! I'm new to rspec and was wondering how named_scopes are usually
> tested? Is it enough to test that it's defined? or do you need to test
> the behavior as well? I've been reading around and this seems to be
> the tester's choice, i just want to get people's opinion on this :D

While this is focused on shoulda, I still found it helpful for
demonstrating how to properly deal with testing named_scopes.


Best regards,
Michael Guterl

More information about the rspec-users mailing list