spec/spec_base.rb in rufus-scheduler-2.0.6 vs spec/spec_base.rb in rufus-scheduler-2.0.7

- old
+ new

@@ -3,29 +3,22 @@ # Specifying rufus-scheduler # # Fri Mar 20 22:53:33 JST 2009 # - -# -# bacon - $:.unshift(File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))) require 'rubygems' require 'fileutils' -$:.unshift(File.expand_path('~/tmp/bacon/lib')) # my own bacon for a while +#$:.unshift(File.expand_path('~/tmp/bacon/lib')) # my own bacon for a while +#require 'bacon' +#puts +#Bacon.summary_on_exit -require 'bacon' -puts - -Bacon.summary_on_exit - - # # rufus/scheduler/em # EM or plain ? @@ -57,14 +50,14 @@ Rufus::Scheduler::EmScheduler # # helper methods -def start_scheduler (opts={}) +def start_scheduler(opts={}) SCHEDULER_CLASS.start_new(opts) end -def stop_scheduler (s) +def stop_scheduler(s) #s.stop(:stop_em => true) #sleep 0.200 # give time to the EM to stop s.stop sleep 0.200 end