seejohnrun/ice_cube — Issue #54: occurrences_between seem break with count
Author: skyporter
Created: 2011-12-20 15:28:01+00:00
State: open

Rule with "count" seem incompatible with occurrences_beetween function when you ask with date after the last occurrence date.

This test actually break at the line 4. I think it shouldn't :

schedule = IceCube::Schedule.new(Time.now)
schedule.add_recurrence_rule(IceCube::Rule.daily.count(5))
schedule.occurrences_between(Time.now, Time.now + 7.days).count.should == 5
schedule.occurrences_between(Time.now + 7.days, Time.now + 14.days).count.should == 0