We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41dce1f commit e506037Copy full SHA for e506037
spec/examples/yearly_rule_spec.rb
@@ -77,6 +77,14 @@
77
expect(schedule.occurrences(Time.utc(2010, 12, 31))).to eq days_of_year
78
end
79
80
+ it 'should produce the correct days for @interval = 1 when you specify week days' do
81
+ start_time = Time.utc(2010, 1, 1)
82
+ schedule = IceCube::Schedule.new(start_time)
83
+ schedule.add_recurrence_rule IceCube::Rule.yearly.day(:monday)
84
+
85
+ expect(schedule.occurrences(Time.utc(2010, 12, 31)).count).to eq 52
86
+ end
87
88
it 'should produce the correct days for @interval = 1 when you specify negative days' do
89
schedule = IceCube::Schedule.new(Time.utc(2010, 1, 1))
90
schedule.add_recurrence_rule IceCube::Rule.yearly.day_of_year(100, -1)
0 commit comments