Files
crono/spec/performer_proxy_spec.rb
Dzmitry Plashchynski 3652e9525a Rename to Crono
2015-03-03 13:51:40 +02:00

14 lines
305 B
Ruby

require "spec_helper"
require "active_job"
class TestJob < ActiveJob::Base
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