test/scheduler_test.rb in openwferu-0.9.6 vs test/scheduler_test.rb in openwferu-0.9.7
- old
+ new
@@ -142,16 +142,16 @@
#
# phase 1
es = EverySchedulable.new
- scheduler.schedule_every("500", es, nil)
+ job_id = scheduler.schedule_every("500", es, nil)
sleep(3.2)
assert_equal es.count, 6
- scheduler.unschedule(es.job_id)
+ scheduler.unschedule(job_id)
sleep(1)
assert_equal es.count, 6