Skip to content

Commit 678e68f

Browse files
committed
Fix failing test over DST boundary
1 parent bf830c3 commit 678e68f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/examples/weekly_rule_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ module IceCube
2828
end
2929

3030
it 'should update previous interval' do
31-
schedule = double(start_time: t0 = Time.now)
31+
schedule = double(start_time: t0 = Time.new(2013, 1, 1))
3232
rule = Rule.weekly(7)
3333
rule.interval(2)
34-
rule.next_time(t0 + 1, schedule, nil).should == t0 + 14 * ONE_DAY
34+
rule.next_time(t0 + 1, schedule, nil).should == Time.new(2013, 1, 15)
3535
end
3636

3737
it 'should produce the correct number of days for @interval = 1 with no weekdays specified' do

0 commit comments

Comments
 (0)