spec/job_at_spec.rb in rufus-scheduler-3.0.7 vs spec/job_at_spec.rb in rufus-scheduler-3.0.8

- old
+ new

@@ -26,22 +26,22 @@ job.unschedule sleep 0.4 - @scheduler.jobs.size.should == 0 + expect(@scheduler.jobs.size).to eq(0) end end describe '#scheduled_at' do it 'returns the Time at which the job got scheduled' do job = @scheduler.schedule_at((t = Time.now) + 3600) {} - job.scheduled_at.to_i.should >= t.to_i - 1 - job.scheduled_at.to_i.should <= t.to_i + 1 + expect(job.scheduled_at.to_i).to be >= t.to_i - 1 + expect(job.scheduled_at.to_i).to be <= t.to_i + 1 end end describe '#time' do @@ -49,10 +49,10 @@ t = Time.now + 3600 job = @scheduler.schedule_at t do; end - job.time.should == t + expect(job.time).to eq(t) end end end