spec/cronline_spec.rb in rufus-scheduler-2.0.21 vs spec/cronline_spec.rb in rufus-scheduler-2.0.22

- old
+ new

@@ -89,9 +89,24 @@ '0 7-23/2 * * *', [ [0], [0], (7..23).select { |e| e.odd? }, nil, nil, nil, nil, nil ]) to_a( '*/10 * * * *', [ [0], [0, 10, 20, 30, 40, 50], nil, nil, nil, nil, nil, nil ]) + + # fighting https://github.com/jmettraux/rufus-scheduler/issues/65 + # + to_a( + '*/10 * * * * Europe/Berlin', + [ [0], [ 0, 10, 20, 30, 40, 50], nil, nil, nil, nil, nil, 'Europe/Berlin' ]) + end + + it 'accepts lonely / (slashes) (like <= 2.0.19 did)' do + + # fighting https://github.com/jmettraux/rufus-scheduler/issues/65 + + to_a( + '/10 * * * *', + [ [0], [ 0, 10, 20, 30, 40, 50], nil, nil, nil, nil, nil, nil ]) end it 'does not support ranges for monthdays (sun#1-sun#2)' do lambda {