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
"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
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