diff options
author | Thong Kuah <tkuah@gitlab.com> | 2018-09-12 05:03:33 +0300 |
---|---|---|
committer | Thong Kuah <tkuah@gitlab.com> | 2018-09-14 07:26:51 +0300 |
commit | 3c5c6c2c2e8e2db00d0b90d0213e60995880b50e (patch) | |
tree | 0eee50ddb5966cfa586a48cb61b104a84cbb5ec0 /spec/support/services | |
parent | 6cba2698f809f6b9e1ae1a2c023d81e2482b2651 (diff) |
Address BE review - re-arrange some specs
Diffstat (limited to 'spec/support/services')
-rw-r--r-- | spec/support/services/clusters/create_service_shared.rb | 3 |
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) |