Sha256: 9f457c2ddcfdb4ba55e74c2c610ea1ac2212770306fed2dccee7957a9768758e
Contents?: true
Size: 621 Bytes
Versions: 4
Compression:
Stored size: 621 Bytes
Contents
# # Specifying rufus-scheduler # # Sun Mar 22 16:47:28 JST 2009 # require File.dirname(__FILE__) + '/spec_base' describe SCHEDULER_CLASS do before do @s = start_scheduler end after do stop_scheduler(@s) end it 'should override jobs with the same id' do hits = [] job0 = @s.in '1s', :job_id => 'nada' do hits << 0 end wait_next_tick job1 = @s.in '1s', :job_id => 'nada' do hits << 1 end wait_next_tick @s.jobs.size.should.equal(1) hits.should.be.empty sleep 1.5 hits.should.equal([ 1 ]) @s.jobs.size.should.equal(0) end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
tanzeeb-rufus-scheduler-2.0.7.2 | spec/at_in_spec.rb |
rufus-scheduler-2.0.6 | spec/at_in_spec.rb |
rufus-scheduler-2.0.5 | spec/at_in_spec.rb |
rufus-scheduler-2.0.4 | spec/at_in_spec.rb |