Fix ProcessReferencesWorker error for tasks before update

This commit is contained in:
KMY 2023-09-27 10:56:08 +09:00
parent fe5e456895
commit bce99f848f
3 changed files with 21 additions and 4 deletions

View file

@ -0,0 +1,17 @@
# frozen_string_literal: true
require 'rails_helper'
describe ProcessReferencesWorker do
let(:worker) { described_class.new }
describe 'perform' do
it 'runs without error for simple call' do
expect { worker.perform(1000, [], []) }.to_not raise_error
end
it 'runs without error with no_fetch_urls' do
expect { worker.perform(1000, [], [], no_fetch_urls: []) }.to_not raise_error
end
end
end