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