This is not Watir related, but it is about testing in Ruby. I am just wondering 
how others are testing e-mail digest. I used to do it manually, and now I would 
like to make a script. I have to test daily, weekly and monthly digest.

Three options come to mind:

1) Simple, but slow. Change digest option for user and wait. I would like that 
my tests do not need a month to run in some cases.
2) Change system time. I would like to avoid that.
3) Add an option in configuration file. That option tells application to check 
date from database, not from system time. Then change date in database. Another 
option is useful - how often is application checking if digest should be sent. 
One minute sounds good. My developer actually implemented this.

I could probably make the third option work in Ruby. I have not worked with 
databases yet, but I hope it would not be too hard. I just wonder if there is a 
more simple way.

I would appreciate your suggestions and experiences.
-- 
ÂŽeljko Filipin
zeljkofilipin.com
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6710&messageID=19283#19283
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to