diff --git a/spec/unit/providers/vsphere_spec.rb b/spec/unit/providers/vsphere_spec.rb index 07611b70b..12d32f800 100644 --- a/spec/unit/providers/vsphere_spec.rb +++ b/spec/unit/providers/vsphere_spec.rb @@ -174,7 +174,7 @@ folder_object.childEntity << mock_vm end folder_object.childEntity << folder_object2 - expect(subject).to receive(:find_folder).with(pool_config['folder'],connection,datacenter_name).and_return(folder_object) + expect(subject).to receive(:find_vm_folder).with(poolname,connection).and_return(folder_object) end it 'should return the vms without the folder' do