Sha256: cc4637fb566d5b054767da8f126c5e2c12db83c61a39abb5a06de1e662d3a636

Contents?: true

Size: 487 Bytes

Versions: 3

Compression:

Stored size: 487 Bytes

Contents

require_relative "../../../base"

require "vagrant/util/template_renderer"

describe "templates/guests/arch/network_dhcp" do
  let(:template) { "guests/arch/network_dhcp" }

  it "renders the template" do
    result = Vagrant::Util::TemplateRenderer.render(template, options: {
      device: "en0",
    })
    expect(result).to eq <<-EOH.gsub(/^ {6}/, "")
      Description='A basic dhcp ethernet connection'
      Interface=en0
      Connection=ethernet
      IP=dhcp
    EOH
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
vagrant-unbundled-1.8.1.2 test/unit/templates/guests/arch/network_dhcp_test.rb
vagrant-unbundled-1.8.1.1 test/unit/templates/guests/arch/network_dhcp_test.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-272fb27e0536/test/unit/templates/guests/arch/network_dhcp_test.rb