diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-20 09:06:16 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-20 09:06:16 +0300 |
commit | 0282449e6ea95b54b32acfd2de24c8c5f64a8165 (patch) | |
tree | 017b43b103e45ff571d637a5efc77b5ed25c0686 /spec/models/clusters/applications/runner_spec.rb | |
parent | 0ecdcf59f4342de55a7d2c3ee4ac0d9c3b116aa5 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models/clusters/applications/runner_spec.rb')
-rw-r--r-- | spec/models/clusters/applications/runner_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/models/clusters/applications/runner_spec.rb b/spec/models/clusters/applications/runner_spec.rb index b420a180524..6ee6711ec4b 100644 --- a/spec/models/clusters/applications/runner_spec.rb +++ b/spec/models/clusters/applications/runner_spec.rb @@ -174,7 +174,9 @@ describe Clusters::Applications::Runner do subject { create(:clusters_applications_runner, :scheduled, runner: ci_runner) } it 'calls prepare_uninstall' do - expect_any_instance_of(described_class).to receive(:prepare_uninstall).and_call_original + expect_next_instance_of(described_class) do |instance| + expect(instance).to receive(:prepare_uninstall).and_call_original + end subject.make_uninstalling! end |