Minor refactor of prometheus_spec
This commit is contained in:
parent
416f3971e6
commit
dbb284de5a
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue