From d57fc72fdb2467ed7d540fd6640250b33055fbcf Mon Sep 17 00:00:00 2001 From: David Bishop Date: Wed, 24 Jan 2018 16:32:51 -0700 Subject: [PATCH] Fix typo in error message --- lib/vmpooler/providers/vsphere.rb | 2 +- spec/unit/providers/vsphere_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vmpooler/providers/vsphere.rb b/lib/vmpooler/providers/vsphere.rb index 8a81253..cfd087c 100644 --- a/lib/vmpooler/providers/vsphere.rb +++ b/lib/vmpooler/providers/vsphere.rb @@ -198,7 +198,7 @@ module Vmpooler target_datacenter_name = get_target_datacenter_from_config(pool_name) # 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('/') template_name = templatefolders.pop diff --git a/spec/unit/providers/vsphere_spec.rb b/spec/unit/providers/vsphere_spec.rb index b3ef04b..39c891e 100644 --- a/spec/unit/providers/vsphere_spec.rb +++ b/spec/unit/providers/vsphere_spec.rb @@ -301,7 +301,7 @@ EOT end 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