Update lib/vmpooler/providers/base.rb

Co-authored-by: Gene Liverman <gene.liverman+06301990@puppet.com>
This commit is contained in:
Samuel 2021-12-08 12:56:22 -06:00 committed by Samuel Beaulieu
parent b85455e4e8
commit ea86c2645a
No known key found for this signature in database
GPG key ID: 12030F74136D0F34
3 changed files with 8 additions and 11 deletions

View file

@ -1144,14 +1144,14 @@ EOT
it 'should run purge_unconfigured_resources' do
expect(provider).to receive(:purge_unconfigured_resources).with(allowlist)
expect(provider).to receive(:provider_config).and_return({})
expect(provider).to receive(:provider_config).and_return({}).twice
subject.purge_vms_and_resources(provider_name)
end
it 'should raise any errors' do
expect(provider).to receive(:purge_unconfigured_resources).with(allowlist).and_raise('mockerror')
expect(provider).to receive(:provider_config).and_return({})
expect(provider).to receive(:provider_config).and_return({}).twice
expect{ subject.purge_vms_and_resources(provider_name) }.to raise_error(RuntimeError, 'mockerror')
end