Re: [rspec-users] nil object error

2009-05-29 Thread David Chelimsky
On Fri, May 29, 2009 at 6:26 AM, Diwakar, ANGLER - EIT wrote: > -- Controller > > def create > > �...@avatars = Avatar.find( :all, >     :conditions => { :user_id => 0 } >   ) > >     @avatars.concat( user.avatars ) > > end > > > --- spec --- >

[rspec-users] nil object error

2009-05-29 Thread Diwakar, ANGLER - EIT
-- Controller def create @avatars = Avatar.find( :all, :conditions => { :user_id => 0 } ) @avatars.concat( user.avatars ) end --- spec --- describe UserAvatarsController do describe :create do before(:each) do @a