Skip to content
This repository
Browse code

Merge pull request #104 from forrest/master

Added failing spec for looping on DST boundary
  • Loading branch information...
commit 77a6057621ff9dc3f5fb5744a80e4dec87d89269 2 parents f0604db + f451231
John Crepezzi authored October 15, 2012

Showing 1 changed file with 8 additions and 0 deletions. Show diff stats Hide diff stats

  1. 8  spec/examples/regression_spec.rb
8  spec/examples/regression_spec.rb
@@ -159,6 +159,14 @@
159 159
     occ.detect { |o| o.year == 2013 && o.month == 3 && o.day == 31 }.should be_true
160 160
   end
161 161
 
  162
+  it "failing spec for hanging on DST boundary [#98]" do
  163
+    Time.zone = "Europe/London"
  164
+    first = Time.zone.parse("Sun, 31 Mar 2013 00:00:00 GMT +00:00")
  165
+    schedule = IceCube::Schedule.new(first)
  166
+    schedule.add_recurrence_rule IceCube::Rule.monthly
  167
+    next_occurance = schedule.next_occurrence(first)
  168
+  end
  169
+
162 170
   it 'should exclude a date from a weekly schedule - issue #55' do
163 171
     Time.zone = 'Eastern Time (US & Canada)'
164 172
     ex = Time.zone.local(2011, 12, 27, 14)

0 notes on commit 77a6057

Please sign in to comment.
Something went wrong with that request. Please try again.