ryanjm / rails-event-manager

Repeating schedule manager Rails.
MIT License
0 stars 0 forks source link

Test interval which lands on Feb w/ by_month_day of 30 #15

Open ryanjm opened 9 years ago

ryanjm commented 9 years ago

In this case it should skip feb and go to the next interval landing.

If you do a bi-monthly schedule on the 30th starting on April 2014, then when it would have landed on Feb 30, 2015 (which doesn't exist), therefore the next occurrence after that is April 30.

Write tests for this and make sure it handles it properly.