test/scheduler_1_test.rb in rufus-scheduler-1.0.7 vs test/scheduler_1_test.rb in rufus-scheduler-1.0.8

- old
+ new

@@ -45,24 +45,23 @@ assert_equal 200_000, count end def test_1 - scheduler = Rufus::Scheduler.new - scheduler.start + scheduler = Rufus::Scheduler.start_new job_id = scheduler.schedule_every "500", :tags => "Avery" do # don't do a thing end sleep 0.300 count = 1 200_000.times do - #assert_equal 1, scheduler.find_jobs("Avery").size count = scheduler.find_jobs("Avery").size + #p scheduler.instance_variable_get(:@non_cron_jobs).keys if count != 1 break if count != 1 end scheduler.sstop @@ -72,11 +71,10 @@ # # testing "deviation", if I may call it like that... # def _test_2 - scheduler = Rufus::Scheduler.new - scheduler.start + scheduler = Rufus::Scheduler.start_new last = nil job_id = scheduler.schedule_every "1s" do t = Time.now puts t.to_f end