This project is archived and is in readonly mode.

#3350 ✓invalid
bismillah khan

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

    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:

    If this isn't what you are looking for, i'd try asking on, or the Ruby on Rails forum here: Hope this helps.

    Mike Riley

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=""></a>