Skip to content

Commit 43d1746

Browse files
committed
Fix incorrect expectation regarding DST change hour.
1 parent b003063 commit 43d1746

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/examples/hourly_rule_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ module IceCube
4141
it 'should not skip times in DST end hour' do
4242
schedule = Schedule.new(t0 = Time.local(2013, 11, 3, 0, 0, 0))
4343
schedule.add_recurrence_rule Rule.hourly
44-
schedule.first(4).should == [
44+
expect(schedule.first(4)).to eq [
4545
Time.local(2013, 11, 3, 0, 0, 0), # -0700
46-
Time.local(2013, 11, 3, 1, 0, 0) - ONE_HOUR, # -0700
47-
Time.local(2013, 11, 3, 1, 0, 0), # -0800
46+
Time.local(2013, 11, 3, 1, 0, 0), # -0700
47+
Time.local(2013, 11, 3, 2, 0, 0) - ONE_HOUR, # -0800
4848
Time.local(2013, 11, 3, 2, 0, 0), # -0800
4949
]
5050
end

0 commit comments

Comments
 (0)