leshill/resque_spec — pull request #61 by opinel (2012-10-31 16:00:43+00:00)
Title: Daylight-saving issue on intervals

I had a mysterious bug lately, when my specs weren't working for e.g. have_scheduled(....).in(10.days). This was due to the calculation of the expected scheduled_at timing and the stored_at + interval timing, They just didn't match due to the missing daylight saving hour in Europe. I bolied it down to the issue that (Time object).to_i + an integer timestamp is different to (Time object + interval).to_i .
In order to test the issue you might have to change your computer clock.