El 17/07/2010, a las 17:37, doug livesey escribió:

> Hi -- how are people speccing Rails 3 ActiveRecord queries?
> At the minute I'm chaining a load of should_receive calls on mock relation
> objects, but can't help thinking that there must be a more elegant way of
> going about it.
> Is there a best practice for this, yet?

I'm pushing them down into the model where possible and testing the model as a 
black box.

Cheers,
Wincent


_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to