[LRUG] Time Based Requirements for Feature testing
Glenn @ Ruby Pond Ltd
glenn at rubypond.com
Thu Oct 1 10:32:22 PDT 2009
>
> Was wondering if anyone else had encountered this problem and if there was
> a nice rubish solution:
>
> NOTE: this is not the fully problem but a cut down version to help get the
> answer I want..
>
>
Just in case this is a viable and suitable solution for the real problem:
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).
Glenn
--
Ruby Pond Ltd
7 Clarence Pde, Cheltenham, GL5 03NY
United Kingdom
T: 0207 183 2224
F: 0207 183 2223
W: http://rubypond.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20091001/19b1eb9b/attachment-0003.html>
More information about the Chat
mailing list