mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
Fix test to raise expected error
This commit is contained in:
parent
26d6cb28d9
commit
87056a731c
1 changed files with 2 additions and 2 deletions
|
|
@ -2198,7 +2198,7 @@ EOT
|
|||
end
|
||||
|
||||
it 'should raise error' do
|
||||
expect{subject.find_least_used_vpshere_compatible_host(vm)}.to raise_error(NoMethodError,/undefined method/)
|
||||
expect{subject.find_least_used_vpshere_compatible_host(vm)}.to raise_error(/There is no host candidate in vcenter that meets all the required conditions/)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -2238,7 +2238,7 @@ EOT
|
|||
end
|
||||
|
||||
it 'should raise error' do
|
||||
expect{subject.find_least_used_vpshere_compatible_host(vm)}.to raise_error(NoMethodError,/undefined method/)
|
||||
expect{subject.find_least_used_vpshere_compatible_host(vm)}.to raise_error(/There is no host candidate in vcenter that meets all the required conditions/)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue