Commit dbb284de authored by Dylan Griffith's avatar Dylan Griffith Committed by Stan Hu

Minor refactor of prometheus_spec

parent 416f3971
...@@ -19,12 +19,10 @@ describe Clusters::Applications::Prometheus do ...@@ -19,12 +19,10 @@ describe Clusters::Applications::Prometheus do
it 'deactivates prometheus_service after destroy' do it 'deactivates prometheus_service after destroy' do
expect do expect do
application.destroy application.destroy!
prometheus_service.reload prometheus_service.reload
end.to change(prometheus_service, :active) end.to change(prometheus_service, :active).from(true).to(false)
expect(prometheus_service).not_to be_active
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment