Fix typo in error message

This commit is contained in:
David Bishop 2018-01-24 16:32:51 -07:00 committed by mattkirby
parent 878c93f646
commit d57fc72fdb
2 changed files with 2 additions and 2 deletions

View file

@ -198,7 +198,7 @@ module Vmpooler
target_datacenter_name = get_target_datacenter_from_config(pool_name) target_datacenter_name = get_target_datacenter_from_config(pool_name)
# Extract the template VM name from the full path # Extract the template VM name from the full path
raise("Pool #{pool_name} did specify a full path for the template for the provider #{name}") unless template_path =~ /\// raise("Pool #{pool_name} did not specify a full path for the template for the provider #{name}") unless template_path =~ /\//
templatefolders = template_path.split('/') templatefolders = template_path.split('/')
template_name = templatefolders.pop template_name = templatefolders.pop

View file

@ -301,7 +301,7 @@ EOT
end end
it 'should raise an error' do it 'should raise an error' do
expect{ subject.create_vm(poolname, vmname) }.to raise_error(/did specify a full path for the template/) expect{ subject.create_vm(poolname, vmname) }.to raise_error(/did not specify a full path for the template/)
end end
end end