From: Frew Schmidt Date: 2007-07-05T08:54:16+09:00 Subject: Re: Time Test::Unit Question > 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 Well the problem is that they will all fail eventually. This is the deal, we have date X, let's say that it's yesterday. My program uses some SQL statements to check if date X (which is obviously in a database) was within Y amount of days. But date X will no longer be in that range after so many days, so I either have to make it dynamically generated (no fun and possible error prone) or somehow make the computer think that the current date and time is a certain value. -fREW -- Posted via http://www.ruby-forum.com/.