From: Dan Zwell Date: 2007-07-04T13:16:55+09:00 Subject: Re: Time Test::Unit Question Frew Schmidt wrote: > I am trying to do a Test that has to do with the date of something > relative to the current time. Should I just have a predefined but > dynamic dataset or what? > > Thoughts? > I would use a set of predefined "random" dates for tests. The reasoning (why not just use randomly generated dates?) is that if a test fails, it should be reproducible. It would be harder to debug a test that sometimes fails. Dan