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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThong Kuah <tkuah@gitlab.com>2018-09-12 05:03:33 +0300
committerThong Kuah <tkuah@gitlab.com>2018-09-14 07:26:51 +0300
commit3c5c6c2c2e8e2db00d0b90d0213e60995880b50e (patch)
tree0eee50ddb5966cfa586a48cb61b104a84cbb5ec0 /spec/support/services
parent6cba2698f809f6b9e1ae1a2c023d81e2482b2651 (diff)
Address BE review - re-arrange some specs
Diffstat (limited to 'spec/support/services')
-rw-r--r--spec/support/services/clusters/create_service_shared.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/support/services/clusters/create_service_shared.rb b/spec/support/services/clusters/create_service_shared.rb
index e2b5920d794..22f712f3fcf 100644
--- a/spec/support/services/clusters/create_service_shared.rb
+++ b/spec/support/services/clusters/create_service_shared.rb
@@ -32,10 +32,11 @@ end
shared_examples 'create cluster service success' do
before do
stub_feature_flags(rbac_clusters: false)
- expect(ClusterProvisionWorker).to receive(:perform_async)
end
it 'creates a cluster object and performs a worker' do
+ expect(ClusterProvisionWorker).to receive(:perform_async)
+
expect { subject }
.to change { Clusters::Cluster.count }.by(1)
.and change { Clusters::Providers::Gcp.count }.by(1)