Sha256: f61ec8cd0318cf3f05c9a264c78f56e99fc93b9ddc07a65afb123333af50544c
Contents?: true
Size: 805 Bytes
Versions: 1
Compression:
Stored size: 805 Bytes
Contents
# # Testing Rufus # # John Mettraux at openwfe.org # # Fri Apr 18 11:29:18 JST 2008 # $:.unshift(File.dirname(__FILE__) + '/../lib') require 'test/unit' require 'openwfe/util/scheduler' # # testing otime and the scheduler # class SchedulerNameTest < Test::Unit::TestCase def test_0 scheduler = Rufus::Scheduler.new scheduler.start sleep 0.350 if defined?(JRUBY_VERSION) t = scheduler.instance_variable_get(:@scheduler_thread) assert_equal "rufus scheduler", t[:name] scheduler.stop end def test_1 scheduler = Rufus::Scheduler.new :thread_name => "genjiguruma" scheduler.start sleep 0.350 if defined?(JRUBY_VERSION) t = scheduler.instance_variable_get(:@scheduler_thread) assert_equal "genjiguruma", t[:name] scheduler.stop end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rufus-scheduler-1.0.12 | test/scheduler_name_test.rb |