test_schedule.rb in rrschedule-0.2.9 vs test_schedule.rb in rrschedule-0.2.10

- old
+ new

@@ -12,5 +12,24 @@ ) ], :shuffle => true, :start_date => Date.parse("2010/10/13") ).generate + + +require 'rubygems' +require 'active_support/all' +require './lib/rrschedule.rb' +include RRSchedule +schedule=RRSchedule::Schedule.new( + :teams => %w(T1 T2 T3 T4 T5 T6 T7 T8 T9 T10 T11 T12 T13), + :rules => [ + RRSchedule::Rule.new( + :wday => 3, + :gt => ["7:00 PM"], + :ps => ["1","2","3","4"], + ) + ], + :cycles => 3, + :shuffle => true, + :start_date => Date.parse("2010/10/13") + ).generate