Sha256: 89f09bbe7594ea96b263480fa8c0603e6c3a63cddac21b7b734a6049b76d29b9
Contents?: true
Size: 712 Bytes
Versions: 3
Compression:
Stored size: 712 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 end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rufus-scheduler-1.0.4 | test/scheduler_6_test.rb |
rufus-scheduler-1.0.3 | test/scheduler_6_test.rb |
rufus-scheduler-1.0.5 | test/scheduler_6_test.rb |