[rspec-users] Spec'ing methods which essentially filter associations

2010-10-23 Thread deploy
I've been spec'ing for a long time, but I've never discovered the answer to this, so a definitive answer would be great! Whats the best way to spec a method which basically filters an association? class Thing < ActiveRecord::Base has_many :others def foos others.all(:conditions => { ...

Re: [rspec-users] Spec'ing methods which essentially filter associations

2010-10-24 Thread deploy
m I not alone? On Oct 24, 3:34 am, David Chelimsky wrote: > On Oct 23, 2010, at 11:04 AM, deploy wrote: > > > > > > > > > > > I've been spec'ing for a long time, but I've never discovered the > > answer to this, so a definitive answer would be gr