Sha256: 15b388450fdf2a932675d11914054a7331e35f15777b27fca76006f1e54187a5
Contents?: true
Size: 633 Bytes
Versions: 1
Compression:
Stored size: 633 Bytes
Contents
# # Testing the 'rufus-scheduler' # # John Mettraux at openwfe.org # # Thu Feb 14 08:19:10 JST 2008 # $:.unshift(File.dirname(__FILE__) + '/../lib') require 'test/unit' require 'rufus/scheduler' class Scheduler6Test < Test::Unit::TestCase # # just a small test # def test_0 s = Rufus::Scheduler.new s.start st = "" s0 = -1 s1 = -2 t = Time.now + 2 s.schedule_at t do st << "0" s0 = Time.now.to_i % 60 end s.schedule_at t do st << "1" s1 = Time.now.to_i % 60 end sleep 2.5 assert_equal "01", st assert_equal s0, s1 s.stop end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rufus-scheduler-1.0.12 | test/scheduler_6_test.rb |