seejohnrun/ice_cube — Issue #57: occurs_on?
Author: ootoovak
Created: 2012-01-08 03:08:18+00:00
State: open

```ruby
schedule
=> Weekly

schedule.start_date
=> 2012-01-07 00:00:00 +1300

test_date = Date.parse('2011-01-06')
=> Thu, 06 Jan 2011

schedule.occurs_on?( test_date.to_time )
=> false

schedule.occurs_on?( test_date )
=> true
```

I found the last result to be unexpected. Will convert argument to time for now but thought this might be a bug. Thanks.