Files
crono/spec/performer_proxy_spec.rb
Dzmitry Plashchynski 2c78115ce7 Add CLI#run_job
2015-03-03 14:36:00 +02:00

13 lines
266 B
Ruby

require "spec_helper"
class TestJob
def perform;end
end
describe Crono::PerformerProxy do
it "should add job and period to schedule" do
Crono.perform(TestJob).every(2.days, at: "15:30")
expect(Crono::Config.instance.schedule).to_not be_empty
end
end