I'm a little torn. Do unit tests for Scopes in Rails 3 make sense?
On the one hand, I'm writing code and I should test that code.
However, on the other hand, basically all my scopes are effectively trivial. Checking one variable against a passed parameter is pretty much the most complex scope I have so far.
scope :author, proc { |author| where(:author_user_id => author }
That code is trivial and also more or less covered in the functions that actually USE the scopes.
What are the best practices for testing or not testing scopes?