73187801df
Since this already exists in `every_sidekiq_worker_spec.rb`.
15 lines
436 B
Ruby
15 lines
436 B
Ruby
require 'spec_helper'
|
|
|
|
describe ReactiveCachingWorker do
|
|
let(:project) { create(:kubernetes_project) }
|
|
let(:service) { project.deployment_service }
|
|
subject { described_class.new.perform("KubernetesService", service.id) }
|
|
|
|
describe '#perform' do
|
|
it 'calls #exclusively_update_reactive_cache!' do
|
|
expect_any_instance_of(KubernetesService).to receive(:exclusively_update_reactive_cache!)
|
|
|
|
subject
|
|
end
|
|
end
|
|
end
|