From 996e7b243be0b0c1bfed77d701159972f849dd46 Mon Sep 17 00:00:00 2001 From: deilann Date: Sun, 22 Jun 2014 14:10:25 -0700 Subject: [PATCH] fix(tests): add in freeRebirth --- test/algos.mocha.coffee | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/algos.mocha.coffee b/test/algos.mocha.coffee index ad3fb877fe..ff9a11198d 100644 --- a/test/algos.mocha.coffee +++ b/test/algos.mocha.coffee @@ -392,6 +392,10 @@ describe 'Cron', -> expect(user.lastCron).to.not.be.ok # it setup the cron property now user.lastCron = +moment().subtract('days',1) + + # this is hacky but should fix things for the moment + user.flags.freeRebirth = true + paths = {};user.fns.cron {paths} expect(user.lastCron).to.be.greaterThan 0 @@ -500,9 +504,6 @@ describe '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)