mirror of
https://github.com/plashchynski/crono.git
synced 2026-05-27 18:29:11 +02:00
Add Schedule
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
require "spec_helper"
|
||||
|
||||
class TestJob
|
||||
def perform;end
|
||||
end
|
||||
|
||||
describe Crono::Schedule do
|
||||
describe "#add" do
|
||||
it "should add an entry to schedule" do
|
||||
@schedule = Crono::Schedule.new
|
||||
@period = Crono::Period.new(1.day)
|
||||
@schedule.add(TestJob, @period)
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user