summaryrefslogtreecommitdiff
path: root/spec/models/clusters/applications/runner_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/clusters/applications/runner_spec.rb')
-rw-r--r--spec/models/clusters/applications/runner_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/clusters/applications/runner_spec.rb b/spec/models/clusters/applications/runner_spec.rb
index b9851ef3219..f239212bf0f 100644
--- a/spec/models/clusters/applications/runner_spec.rb
+++ b/spec/models/clusters/applications/runner_spec.rb
@@ -193,11 +193,11 @@ describe Clusters::Applications::Runner do
end
end
- describe '#destroy!' do
+ describe '#post_uninstall' do
it 'destroys its runner' do
application_runner = create(:clusters_applications_runner, :scheduled, runner: ci_runner)
- expect { application_runner.destroy! }.to change { Ci::Runner.count }.by(-1)
+ expect { application_runner.post_uninstall }.to change { Ci::Runner.count }.by(-1)
end
end
end