mirror of
https://github.com/plashchynski/crono.git
synced 2026-03-31 06:33:15 +02:00
Add PerformerProxy
This commit is contained in:
13
spec/performer_proxy_spec.rb
Normal file
13
spec/performer_proxy_spec.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
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
|
||||
@@ -1,7 +1,6 @@
|
||||
require 'bundler/setup'
|
||||
Bundler.setup
|
||||
|
||||
require 'active_job'
|
||||
require 'timecop'
|
||||
require 'periodicity'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user