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

cluster_wait_for_ingress_ip_address_worker_spec.rb « workers « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 57198320330d5a26082a074cd368cf64d687ce90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# require 'spec_helper'

# describe ClusterWaitForIngressIpAddressWorker do
#   describe '#perform' do
#     let(:service) { instance_double(Clusters::Applications::CheckIngressIpAddressService, execute: true) }
#     let(:application) { instance_double(Clusters::Applications::Ingress) }
#     let(:worker) { described_class.new }

#     before do
#       allow(worker)
#         .to receive(:find_application)
#         .with('ingress', 117)
#         .and_yield(application)

#       allow(Clusters::Applications::CheckIngressIpAddressService)
#         .to receive(:new)
#         .with(application)
#         .and_return(service)

#       allow(described_class)
#         .to receive(:perform_in)
#     end

#     it 'finds the application and calls CheckIngressIpAddressService#execute' do
#       worker.perform('ingress', 117)

#       expect(service).to have_received(:execute)
#     end
#   end
# end