mirror of
https://github.com/plashchynski/crono.git
synced 2026-04-10 03:13:44 +02:00
Add Schedule
This commit is contained in:
15
spec/schedule_spec.rb
Normal file
15
spec/schedule_spec.rb
Normal 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
|
||||
Reference in New Issue
Block a user