summaryrefslogtreecommitdiff
path: root/spec/models
diff options
context:
space:
mode:
authorDylan Griffith <dyl.griffith@gmail.com>2019-04-26 14:25:51 +1000
committerStan Hu <stanhu@gmail.com>2019-04-29 22:55:13 -0700
commitdbb284de5a18361eae937926052abd1ea3c261b5 (patch)
tree01542978417f10fa69bf191371f5cd4cb5c11ee1 /spec/models
parent416f3971e66762246f0af3cda97c4b55e101f61b (diff)
downloadgitlab-ce-dbb284de5a18361eae937926052abd1ea3c261b5.tar.gz
Minor refactor of prometheus_spec
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/clusters/applications/prometheus_spec.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/models/clusters/applications/prometheus_spec.rb b/spec/models/clusters/applications/prometheus_spec.rb
index 8649d3e2710..26267c64112 100644
--- a/spec/models/clusters/applications/prometheus_spec.rb
+++ b/spec/models/clusters/applications/prometheus_spec.rb
@@ -19,12 +19,10 @@ describe Clusters::Applications::Prometheus do
it 'deactivates prometheus_service after destroy' do
expect do
- application.destroy
+ application.destroy!
prometheus_service.reload
- end.to change(prometheus_service, :active)
-
- expect(prometheus_service).not_to be_active
+ end.to change(prometheus_service, :active).from(true).to(false)
end
end