diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-11-06 23:06:10 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-11-06 23:06:10 +0900 |
commit | a99ad59e655d66fda8af7f2b89aced79b8bc1060 (patch) | |
tree | c324ee36e56192feba969709807f7e7c329e3fbf /spec/workers | |
parent | 377916ed72cf31ee31e463f395993d1ec0dc579b (diff) | |
download | gitlab-ce-a99ad59e655d66fda8af7f2b89aced79b8bc1060.tar.gz |
Remove 10.3 comments (Tracked by a tech debts issue). Refactor spec factory name. Use ArgumentErrorrefactor-clusters
Diffstat (limited to 'spec/workers')
-rw-r--r-- | spec/workers/cluster_provision_worker_spec.rb | 2 | ||||
-rw-r--r-- | spec/workers/wait_for_cluster_creation_worker_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/workers/cluster_provision_worker_spec.rb b/spec/workers/cluster_provision_worker_spec.rb index 85c7dc20ede..8054ec11a48 100644 --- a/spec/workers/cluster_provision_worker_spec.rb +++ b/spec/workers/cluster_provision_worker_spec.rb @@ -4,7 +4,7 @@ describe ClusterProvisionWorker do describe '#perform' do context 'when provider type is gcp' do let(:cluster) { create(:cluster, provider_type: :gcp, provider_gcp: provider) } - let(:provider) { create(:provider_gcp, :scheduled) } + let(:provider) { create(:cluster_provider_gcp, :scheduled) } it 'provision a cluster' do expect_any_instance_of(Clusters::Gcp::ProvisionService).to receive(:execute) diff --git a/spec/workers/wait_for_cluster_creation_worker_spec.rb b/spec/workers/wait_for_cluster_creation_worker_spec.rb index 29812408396..0e92b298178 100644 --- a/spec/workers/wait_for_cluster_creation_worker_spec.rb +++ b/spec/workers/wait_for_cluster_creation_worker_spec.rb @@ -4,7 +4,7 @@ describe WaitForClusterCreationWorker do describe '#perform' do context 'when provider type is gcp' do let(:cluster) { create(:cluster, provider_type: :gcp, provider_gcp: provider) } - let(:provider) { create(:provider_gcp, :creating) } + let(:provider) { create(:cluster_provider_gcp, :creating) } it 'provision a cluster' do expect_any_instance_of(Clusters::Gcp::VerifyProvisionStatusService).to receive(:execute) |