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.
This commit is contained in:
deilann 2014-06-22 14:00:59 -07:00
parent 5181b046b4
commit 931525df0b

View file

@ -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)