diff options
Diffstat (limited to 'spec/workers/cluster_wait_for_ingress_ip_address_worker_spec.rb')
-rw-r--r-- | spec/workers/cluster_wait_for_ingress_ip_address_worker_spec.rb | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/spec/workers/cluster_wait_for_ingress_ip_address_worker_spec.rb b/spec/workers/cluster_wait_for_ingress_ip_address_worker_spec.rb deleted file mode 100644 index 7a42c988a92..00000000000 --- a/spec/workers/cluster_wait_for_ingress_ip_address_worker_spec.rb +++ /dev/null @@ -1,32 +0,0 @@ -# frozen_string_literal: true - -require 'spec_helper' - -RSpec.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 |