Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

test cases

#3350

how can i write test cases on validates_presence_of :city,:state,:country give me some code for this.

Reported by bismillah khan · October 8th, 2009 @ 10:14 AM

State: invalid
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Mike Riley
    Mike Riley
    • 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

    June 17th, 2010 @ 01:57 AM