Sha256: 02946fe2bb4c63a87a7eb2557d7970e4cd4aad0bcb9c8346eb53f0104bba467c

Contents?: true

Size: 576 Bytes

Versions: 1

Compression:

Stored size: 576 Bytes

Contents

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

require "vagrant/util/template_renderer"

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

  it "renders the template" do
    result = Vagrant::Util::TemplateRenderer.render(template, options: {
      device: "en0",
    })
    expect(result).to eq <<-EOH.gsub(/^ {6}/, "")
      #VAGRANT-BEGIN
      # The contents below are automatically generated by Vagrant. Do not modify.
      BOOTPROTO=dhcp
      ONBOOT=yes
      DEVICE=en0
      #VAGRANT-END
    EOH
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-cloudstack-1.2.0 vendor/bundle/bundler/gems/vagrant-c84e05fd063f/test/unit/templates/guests/fedora/network_dhcp_test.rb