Fix test to raise expected error

This commit is contained in:
Samuel Beaulieu 2017-06-07 17:20:11 +01:00
parent 26d6cb28d9
commit 87056a731c

View file

@ -2198,7 +2198,7 @@ EOT
end end
it 'should raise error' do 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
end end
@ -2238,7 +2238,7 @@ EOT
end end
it 'should raise error' do 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
end end