diff --git a/spec/kitchen/driver/vagrant_spec.rb b/spec/kitchen/driver/vagrant_spec.rb index c45630dc..4863709f 100644 --- a/spec/kitchen/driver/vagrant_spec.rb +++ b/spec/kitchen/driver/vagrant_spec.rb @@ -1081,14 +1081,7 @@ def run_command(_cmd, options = {}) config[:box_check_update] = false cmd - expect(vagrantfile).to match(regexify(%{c.vm.box_check_update = "false"})) - end - - it "sets vm.box_check_update if :box_check_update is set" do - config[:box_check_update] = "um" - cmd - - expect(vagrantfile).to match(regexify(%{c.vm.box_check_update = "um"})) + expect(vagrantfile).to match(regexify(%{c.vm.box_check_update = false})) end it "sets no vm.box_download_insecure if missing" do diff --git a/templates/Vagrantfile.erb b/templates/Vagrantfile.erb index 09aa3c4c..82a61faf 100644 --- a/templates/Vagrantfile.erb +++ b/templates/Vagrantfile.erb @@ -21,7 +21,7 @@ Vagrant.configure("2") do |c| <% end %> <% if !config[:box_check_update].nil? %> - c.vm.box_check_update = "<%= config[:box_check_update] %>" + c.vm.box_check_update = <%= config[:box_check_update] %> <% end %> <% if !config[:box_download_insecure].nil? %>