spec/spec_base.rb in rufus-scheduler-2.0.11 vs spec/spec_base.rb in rufus-scheduler-2.0.12

- old
+ new

@@ -3,16 +3,19 @@ # Specifying rufus-scheduler # # Fri Mar 20 22:53:33 JST 2009 # -$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))) +$:.unshift(File.expand_path('../../lib', __FILE__)) require 'rubygems' require 'fileutils' +Thread.abort_on_exception = true + + #$:.unshift(File.expand_path('~/tmp/bacon/lib')) # my own bacon for a while #require 'bacon' #puts #Bacon.summary_on_exit @@ -20,11 +23,11 @@ # # rufus/scheduler/em # EM or plain ? -$plain = ! ARGV.include?('--em') +$plain = ! ENV['EVENTMACHINE'] require 'rufus/scheduler' if ( ! $plain) @@ -62,14 +65,14 @@ s.stop sleep 0.200 end def wait_next_tick - if defined?(EM) - t = Thread.current - EM.next_tick { t.wakeup } - Thread.stop - else - sleep 0.500 - end + #if defined?(EM) + # t = Thread.current + # EM.next_tick { t.wakeup } + # Thread.stop + #else + sleep 0.500 + #end end