Skip to content

Commit

Permalink
Merge pull request #104 from forrest/master
Browse files Browse the repository at this point in the history
Added failing spec for looping on DST boundary
  • Loading branch information
seejohnrun committed Oct 16, 2012
2 parents f0604db + f451231 commit 77a6057
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/examples/regression_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,14 @@
occ.detect { |o| o.year == 2013 && o.month == 3 && o.day == 31 }.should be_true
end

it "failing spec for hanging on DST boundary [#98]" do
Time.zone = "Europe/London"
first = Time.zone.parse("Sun, 31 Mar 2013 00:00:00 GMT +00:00")
schedule = IceCube::Schedule.new(first)
schedule.add_recurrence_rule IceCube::Rule.monthly
next_occurance = schedule.next_occurrence(first)
end

it 'should exclude a date from a weekly schedule - issue #55' do
Time.zone = 'Eastern Time (US & Canada)'
ex = Time.zone.local(2011, 12, 27, 14)
Expand Down

0 comments on commit 77a6057

Please sign in to comment.