Re: Failing functional tests when controllers work

Ilan Berci
Fri, 22 Feb 2008 21:47:33 -0000

Phlip wrote:
> pjmorse wrote:
>
>>     if @user.save
>>                         # Tests never reach this code
>
> Temporarily change that to @user.save! and read the error diagnostic?

no need to even do that.. just type @user and see what the debugger
gives you.. I believe that your password fields will not be set which
therefore failed the validation tests in your model

hth

ilan


--
Posted via http://www.ruby-forum.com/.