spec/cronline_spec.rb in rufus-scheduler-3.0.0 vs spec/cronline_spec.rb in rufus-scheduler-3.0.1

- old
+ new

@@ -72,11 +72,18 @@ lambda { cl '* nada * * 9' }.should raise_error(ArgumentError) end it 'interprets cron strings with TZ correctly' do - to_a '* * * * * EST', [ [0], nil, nil, nil, nil, nil, nil, 'EST' ] - to_a '* * * * * * EST', [ nil, nil, nil, nil, nil, nil, nil, 'EST' ] + to_a('* * * * * EST', [ [0], nil, nil, nil, nil, nil, nil, 'EST' ]) + to_a('* * * * * * EST', [ nil, nil, nil, nil, nil, nil, nil, 'EST' ]) + + to_a( + '* * * * * * America/Chicago', + [ nil, nil, nil, nil, nil, nil, nil, 'America/Chicago' ]) + to_a( + '* * * * * * America/New_York', + [ nil, nil, nil, nil, nil, nil, nil, 'America/New_York' ]) lambda { cl '* * * * * NotATimeZone' }.should raise_error lambda { cl '* * * * * * NotATimeZone' }.should raise_error end