hi Colin

1) Failure:
test_for_update(CountyTest) [test/unit/county_test.rb:19]:
Name has already been taken.
<false> is not true.



-- 
Karthik.k
Mobile - +91-9894991640



On Sat, Aug 1, 2009 at 3:59 PM, Colin Law <[email protected]> wrote:

>
> 2009/8/1 karthik k <[email protected]>:
> > hi
> > i am updating the data in unit testing
> >
> > def test_for_update
> >     post=counties(:one)
> >     assert post.valid?, post.errors.full_messages
> >     assert post.update_attributes(:name=>"")
> >   end
> >
> >
> > name should not be empty but as you said i displayed
> >
> > "assert post.valid?, post.errors.full_messages"
> >
> > But i am not getting error message in assert but getting error message
>
> What is the error message you see (all of it)
>
> Colin
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to