test/monthly_enumerator_test.rb in hiccup-0.5.13 vs test/monthly_enumerator_test.rb in hiccup-0.5.14

- old
+ new

@@ -67,6 +67,23 @@ end end end + context "with an empty schedule" do + setup do + @schedule = Schedule.new( + kind: :monthly, + skip: 2, + monthly_pattern: [], + start_date: Date.new(2015, 1, 1)) + end + + should "always return nil" do + date = Date.new(2015, 2, 1) + enumerator = @schedule.enumerator.new(@schedule, date) + assert_equal nil, enumerator.next + end + end + + end