spec/in_spec.rb in rufus-scheduler-2.0.9 vs spec/in_spec.rb in rufus-scheduler-2.0.10

- old
+ new

@@ -138,37 +138,5 @@ @s.find_by_tag('spec').size.should == 1 @s.find_by_tag('spec').first.job_id.should == job.job_id end end -describe Rufus::Scheduler::InJob do - - before(:each) do - @s = start_scheduler - end - after(:each) do - stop_scheduler(@s) - end - - it 'unschedules itself' do - - job = @s.in '2d' do - end - - wait_next_tick - - job.unschedule - - @s.jobs.size.should == 0 - end - - it 'responds to #next_time' do - - t = Time.now + 3 * 3600 - - job = @s.in '3h' do - end - - job.next_time.to_i.should == t.to_i - end -end -