From 87056a731c6287ec569132770eae9e461942e211 Mon Sep 17 00:00:00 2001 From: Samuel Beaulieu Date: Wed, 7 Jun 2017 17:20:11 +0100 Subject: [PATCH] Fix test to raise expected error --- spec/unit/providers/vsphere_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/unit/providers/vsphere_spec.rb b/spec/unit/providers/vsphere_spec.rb index 74ccc66..f27ea70 100644 --- a/spec/unit/providers/vsphere_spec.rb +++ b/spec/unit/providers/vsphere_spec.rb @@ -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