This project is archived and is in readonly mode.
test cases
Reported by bismillah khan | October 8th, 2009 @ 10:14 AM
how can i write test cases on validates_presence_of :city,:state,:country give me some code for this.
Comments and changes to this ticket
-
Mike Riley June 17th, 2010 @ 01:57 AM
- State changed from new to invalid
Hello Bismillah,
Unfortunately, this site is for bug issues for Ruby on Rails, so I am going to mark this ticket as invalid. Regarding your question, here is some sample code you may be able to use if you are using test unit in Rails:
http://snippets.dzone.com/posts/show/1170
If this isn't what you are looking for, i'd try asking on stackoverflow.com, railsforum.com or the Ruby on Rails forum here: http://www.ruby-forum.com/forum/3. Hope this helps.
Mike Riley
twitter.com/wdperson
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>