seejohnrun/ice_cube — Issue #47: Bug with interval and yaml
Author: deltadd
Created: 2011-12-09 11:52:11+00:00
State: open

In v.0.7.1 after save/restore from yaml the information about interval become incorrect in #occurrences_between

```ruby
r = Rule.daily(3)
s = Schedule.new(Time.now)
s.add_recurrence_rule(r)
s.occurrences_between(Time.local(2011, 12, 1), Time.local(2011, 12, 31)) # This works correctly with interval of 3 days

yaml = s.to_yaml
sbug = Schedule.from_yaml(yaml)

sbug.occurrences_between(Time.local(2011, 12, 1), Time.local(2011, 12, 31)) # Bug: now every day

sbug.to_s # However this shows "Every 3 days"
```