Refactor to remove global variables

This commit is contained in:
Dzmitry Plashchynski
2015-03-03 19:33:56 +02:00
parent 4c59804472
commit cbc33324cc
9 changed files with 33 additions and 50 deletions

View File

@@ -6,7 +6,7 @@ end
describe Crono::PerformerProxy do
it "should add job and period to schedule" do
expect(Crono.config.schedule).to receive(:add).with(TestJob, kind_of(Crono::Period))
expect(Crono.schedule).to receive(:add).with(TestJob, kind_of(Crono::Period))
Crono.perform(TestJob).every(2.days, at: "15:30")
end
end