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

- old
+ new

@@ -136,9 +136,25 @@ lambda { pd(' 1h ') }.should raise_error(ArgumentError) end end + describe '.parse_time_string -> .parse_duration' do + + it 'is still around for libs using it out there' do + + Rufus::Scheduler.parse_time_string('1d1w1d').should == 777600.0 + end + end + + describe '.parse_duration_string -> .parse_duration' do + + it 'is still around for libs using it out there' do + + Rufus::Scheduler.parse_duration_string('1d1w1d').should == 777600.0 + end + end + describe '.to_duration' do def td(o, opts={}) Rufus::Scheduler.to_duration(o, opts) end