Sha256: 795ea4e011d10741bc3f4685361e8043fb93bcb2aebe6091d271e3e9ea265b44
Contents?: true
Size: 630 Bytes
Versions: 6
Compression:
Stored size: 630 Bytes
Contents
# # Testing the 'rufus-scheduler' # # John Mettraux at openwfe.org # # Thu Feb 14 08:19:10 JST 2008 # require 'test/unit' require 'rufus/scheduler' class Scheduler6Test < Test::Unit::TestCase #def setup #end #def teardown #end # # 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
6 entries across 6 versions & 1 rubygems