mirror of
https://github.com/plashchynski/crono.git
synced 2026-04-28 11:47:21 +02:00
Add Job class
This commit is contained in:
@@ -5,8 +5,8 @@ class TestJob
|
||||
end
|
||||
|
||||
describe Crono::PerformerProxy do
|
||||
it "should add job and period to schedule" do
|
||||
expect(Crono.schedule).to receive(:add).with(TestJob, kind_of(Crono::Period))
|
||||
it "should add job to schedule" do
|
||||
expect(Crono.schedule).to receive(:add).with(kind_of(Crono::Job))
|
||||
Crono.perform(TestJob).every(2.days, at: "15:30")
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user