spec/packer/builders/vmware_vmx_spec.rb in packer-config-1.3.1 vs spec/packer/builders/vmware_vmx_spec.rb in packer-config-1.4.0
- old
+ new
@@ -2,20 +2,18 @@
require 'spec_helper'
RSpec.describe Packer::Builder::VMWareVMX do
let(:builder) { Packer::Builder.get_builder(Packer::Builder::VMWARE_VMX) }
- describe '#initialize' do
- it 'has a type of VMWare VMX' do
- expect(builder.data['type']).to eq(Packer::Builder::VMWARE_VMX)
- end
+ it 'has a type of VMWare VMX' do
+ expect(builder.data['type']).to eq(Packer::Builder::VMWARE_VMX)
+ end
- it 'requires source_path' do
- expect { builder.validate }.to raise_error(Packer::DataObject::DataValidationError)
- builder.source_path 'path'
- builder.ssh_username 'user'
- expect { builder.validate }.not_to raise_error
- end
+ it 'requires source_path and communicator' do
+ expect { builder.validate }.to raise_error(Packer::DataObject::DataValidationError)
+ builder.source_path 'path'
+ builder.communicator 'ssh'
+ expect { builder.validate }.not_to raise_error
end
describe '#vmx_data' do
it 'adds a hash of arbitrary data' do
builder.vmx_data(