On Sun, Jan 17, 2010 at 9:17 PM, Nin <npdepolo...@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. http://robots.thoughtbot.com/post/200254501/testing-named-scopes Best regards, Michael Guterl _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users