Add Schedule

This commit is contained in:
Dzmitry Plashchynski
2015-03-03 15:11:19 +02:00
parent 2c78115ce7
commit 518160d5d9
9 changed files with 38 additions and 7 deletions

15
spec/schedule_spec.rb Normal file
View File

@@ -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