Re: [rspec-users] Problem when testing controllers

2008-12-12 Thread Daniel Area Criações
Thanks, now it's looks obivious. :D Atenciosamente, Daniel Lopes  Area Criações Design, Websites e Sistemas Web Visite: http://www.areacriacoes.com.br/projects http://blog.areacriacoes.com.br/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 55 (31) 307

Re: [rspec-users] Problem when testing controllers

2008-12-12 Thread Pat Maddox
"Daniel Lopes" writes: > I'm having troubles to test methods on controllers, specially this method: > > def update > @property = @user.properties.find(params[:id]) > > if params[:property][:owner_id].blank? > @owner = Owner.create_from_user(@user) > @property.owner = @o

[rspec-users] Problem when testing controllers

2008-12-12 Thread Daniel Lopes
I'm having troubles to test methods on controllers, specially this method: def update @property = @user.properties.find(params[:id]) if params[:property][:owner_id].blank? @owner = Owner.create_from_user(@user) @property.owner = @owner end if @property.update_attribu