Minor refactor of prometheus_spec

This commit is contained in:
Dylan Griffith 2019-04-26 14:25:51 +10:00 committed by Stan Hu
parent 416f3971e6
commit dbb284de5a

View file

@ -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