From 931525df0baeee88f367500a64a54f7dcd1523ee Mon Sep 17 00:00:00 2001 From: deilann Date: Sun, 22 Jun 2014 14:00:59 -0700 Subject: [PATCH] fix(tests): add in freeRebirth Really, I should fix this more systematically, but I think this should fix the tests for the moment, which is badly needed. --- test/algos.mocha.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/algos.mocha.coffee b/test/algos.mocha.coffee index c252257788..ad3fb877fe 100644 --- a/test/algos.mocha.coffee +++ b/test/algos.mocha.coffee @@ -499,7 +499,10 @@ describe 'Cron', -> task due days, user custom day start, timezoneOffset, etc - then runs cron, jumps to tomorrow and runs cron, and so on - testing each possible outcome along the way ### - + + # this is hacky but should fix things for the moment + user.flags.freeRebirth = true + runCron = (options) -> _.each [480, 240, 0, -120], (timezoneOffset) -> # test different timezones now = shared.startOfWeek({timezoneOffset}).add('hours', options.currentHour||0)