<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="font-family:times new roman, new york, times, serif;font-size:12pt;color:#000000">
<div>Was wondering if anyone else had encountered this problem and if there was a nice rubish solution:</div>
<div> </div>
<div>NOTE: this is not the fully problem but a cut down version to help get the answer I want..</div>
<div><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="font-size: small;"><font class="Apple-style-span" face="'times new roman', 'new york', times, fantasy" size="4"><span class="Apple-style-span" style="font-size: 16px;"><br>
</span></font></span></font></div></div></div></blockquote><div><br></div><div>Just in case this is a viable and suitable solution for the real problem:</div><div><br></div><div>Change the cut-off time so that it is a configuration setting in your application, then change the test so that it is testing that the cut-off works for any configured value (i.e., set the value to Time.now + 5.minutes for the positive case, and Time.now - 5.minutes for the negative).</div>
<div><br></div><div>Glenn</div></div>-- <br>Ruby Pond Ltd<br>7 Clarence Pde, Cheltenham, GL5 03NY<br>United Kingdom<br><br>T: 0207 183 2224<br>F: 0207 183 2223<br>W: <a href="http://rubypond.com/">http://rubypond.com/</a><br>