[rspec-users] How are people speccing Rails 3 ActiveRecord queries?
Wincent Colaiuta
win at wincent.com
Sat Jul 17 12:03:19 EDT 2010
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
More information about the rspec-users
mailing list