On Thu, Nov 19, 2009 at 01:55:37PM -0800, cnjohnson wrote: > ensure that start dates are always on or prior to end dates, I have > written a custom validation (config/initializers/validators.rb), and I > am wondering how to test it. Ideas? Is there a best practice for this > sort of thing?
Doesn't your unit testing exercise the validator? I'm not an expert on rails testing, but that's where I'd expect it to checked. -- "Oh, look: rocks!" -- Doctor Who, "Destiny of the Daleks" -- 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=.