[rspec-users] rails associations

Newman Huang lists at ruby-forum.com
Tue Nov 25 22:46:57 EST 2008


hi Parker, maybe it is not an association mock problem. I view your code 
and I think you need to correct one place

@account.stub!(:articles).and_return(@article)

#=>

@account.stub!(:article).and_return(@article)
-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list