summaryrefslogtreecommitdiff
path: root/spec/services/clusters/create_service_spec.rb
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2017-12-03 17:33:38 +0100
committerMatija Čupić <matteeyah@gmail.com>2017-12-03 17:33:38 +0100
commit363c57468dc6f656c6c345f0b9eda32029571201 (patch)
treeb57ac4ad27bed9440948d01c32cc8450aae345ae /spec/services/clusters/create_service_spec.rb
parent7691e015d7c103b39a92e3a18f6dff5ff9602394 (diff)
downloadgitlab-ce-363c57468dc6f656c6c345f0b9eda32029571201.tar.gz
Raise error when trying to create second cluster
Diffstat (limited to 'spec/services/clusters/create_service_spec.rb')
-rw-r--r--spec/services/clusters/create_service_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/services/clusters/create_service_spec.rb b/spec/services/clusters/create_service_spec.rb
index 9d31c4c64c6..d758bf6beb2 100644
--- a/spec/services/clusters/create_service_spec.rb
+++ b/spec/services/clusters/create_service_spec.rb
@@ -83,7 +83,7 @@ describe Clusters::CreateService do
it 'does not create a cluster' do
expect(ClusterProvisionWorker).not_to receive(:perform_async)
- expect { result }.to change { Clusters::Cluster.count }.by(0)
+ expect { result }.to raise_error(Exception).and change { Clusters::Cluster.count }.by(0)
end
end
end