Welcome to mirror list, hosted at ThFree Co, Russian Federation.

reactive_caching_worker_spec.rb « workers « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5f4453c15d63cd5b30efef3372fa8030cf4c899b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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