diff options
author | Matija Čupić <matteeyah@gmail.com> | 2017-12-03 17:33:38 +0100 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2017-12-03 17:33:38 +0100 |
commit | 363c57468dc6f656c6c345f0b9eda32029571201 (patch) | |
tree | b57ac4ad27bed9440948d01c32cc8450aae345ae /spec | |
parent | 7691e015d7c103b39a92e3a18f6dff5ff9602394 (diff) | |
download | gitlab-ce-363c57468dc6f656c6c345f0b9eda32029571201.tar.gz |
Raise error when trying to create second cluster
Diffstat (limited to 'spec')
-rw-r--r-- | spec/services/clusters/create_service_spec.rb | 2 |
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 |