mirror of
https://github.com/plashchynski/crono.git
synced 2026-03-29 05:42:02 +02:00
14 lines
305 B
Ruby
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
|