Sha256: 464f36ecbb22001c27a6a5ffad527e8258327c4eb18e346de509dc68b8983669
Contents?: true
Size: 1.01 KB
Versions: 23
Compression:
Stored size: 1.01 KB
Contents
require_relative "../../../base" require "vagrant/util/template_renderer" describe "templates/guests/redhat/network_dhcp" do let(:template) { "guests/redhat/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 NM_CONTROLLED=no #VAGRANT-END EOH end it "renders the template with NetworkManager enabled" do result = Vagrant::Util::TemplateRenderer.render(template, options: { device: "en0", nm_controlled: "yes" }) 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 NM_CONTROLLED=yes #VAGRANT-END EOH end end
Version data entries
23 entries across 19 versions & 5 rubygems