Permalink
Browse files

Add a new test

  • Loading branch information...
1 parent 84c1889 commit 3c0306f291a0e2abd4806712fba5721053ece5aa John Crepezzi committed Apr 6, 2010
Showing with 13 additions and 0 deletions.
  1. +13 −0 spec/examples/ice_cube_spec.rb
View
13 spec/examples/ice_cube_spec.rb
@@ -240,5 +240,18 @@
Time.utc(2010, 11, 9, 5, 0, 0)]
end
+ it 'works with a monthly rule iterating on UTC' do
+ start_date = Time.utc(2010, 4, 24, 15, 45, 0)
+ schedule = Schedule.new(start_date)
+ schedule.add_recurrence_rule Rule.monthly
+ dates = schedule.first(10)
+ dates.each do |d|
+ d.day.should == 24
+ d.hour.should == 15
+ d.min.should == 45
+ d.sec.should == 0
+ d.utc?.should be true
+ end
+ end
end

0 comments on commit 3c0306f

Please sign in to comment.