Refactoring

This commit is contained in:
Dzmitry Plashchynski
2015-03-05 15:17:34 +02:00
parent 59e71e89f3
commit 0f32f8a5a4
7 changed files with 35 additions and 15 deletions

View File

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