Infinite Loop on occurrences_between #109

Closed
victorhg opened this Issue Oct 19, 2012 · 0 comments

Comments

Projects
None yet
2 participants

Hey there,

I just came through an infinite loop problem.

The following spec reproduces it:

  it 'should not infinite loop' do
     schedule = IceCube::Schedule.new Time.new(2012,04,27, 0, 0, 0)
     schedule.end_time = Time.new(2013, 4, 27, 0, 0, 0)
     schedule.rrule IceCube::Rule.weekly.day(:monday, :tuesday, :wednesday, :thursday, :friday, :saturday, :sunday).hour_of_day(0).minute_
     schedule.duration = 3600 
     start_time = Time.at(1350702000) # 2012-10-20 00:00:00 -0300 
     end_time = Time.at(1350788399)   # 2012-10-20 23:59:59 -0300
     schedule.occurrences_between(start_time, end_time).first.should == start_time
   end

seejohnrun added a commit that referenced this issue Oct 19, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment