test/scheduler_1_test.rb in rufus-scheduler-1.0.6 vs test/scheduler_1_test.rb in rufus-scheduler-1.0.7
- old
+ new
@@ -1,8 +1,8 @@
#
-# Testing OpenWFE
+# Testing Rufus
#
# John Mettraux at openwfe.org
#
# Sun Oct 29 16:18:25 JST 2006
#
@@ -22,12 +22,12 @@
#def teardown
#end
def test_0
- scheduler = OpenWFE::Scheduler.new
- scheduler.sstart
+ scheduler = Rufus::Scheduler.new
+ scheduler.start
job_id = scheduler.schedule_every "500", :tags => "Avery" do
# don't do a thing
end
@@ -45,12 +45,12 @@
assert_equal 200_000, count
end
def test_1
- scheduler = OpenWFE::Scheduler.new
- scheduler.sstart
+ scheduler = Rufus::Scheduler.new
+ scheduler.start
job_id = scheduler.schedule_every "500", :tags => "Avery" do
# don't do a thing
end
@@ -72,11 +72,11 @@
#
# testing "deviation", if I may call it like that...
#
def _test_2
- scheduler = OpenWFE::Scheduler.new
- scheduler.sstart
+ scheduler = Rufus::Scheduler.new
+ scheduler.start
last = nil
job_id = scheduler.schedule_every "1s" do
t = Time.now
puts t.to_f
end