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 => { ...
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