Files
crono/spec/performer_proxy_spec.rb
Dzmitry Plashchynski 6b185c44ac Add PerformerProxy
2015-03-02 22:03:18 +02:00

14 lines
323 B
Ruby

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