From: Frew Schmidt Date: 2007-07-08T00:27:09+09:00 Subject: Re: Time Test::Unit Question James Mead wrote: > You could try using Mocha (http://mocha.rubyforge.org)... > > Time.stubs(:now).returns(the_time_you_want) I dig that idea, but I get the current time in the actual DB code. I am trying to test my DB code just as much as I am testing my Ruby code here. -- Posted via http://www.ruby-forum.com/.