From 848fe5d16609218102b17a2c28d742db12e247c7 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 3 Feb 2014 11:40:15 +0100 Subject: [PATCH] kernel/v2: check for box updates by default /cc @pearkes @armon --- plugins/kernel_v2/config/vm.rb | 2 +- test/unit/plugins/kernel_v2/config/vm_test.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/kernel_v2/config/vm.rb b/plugins/kernel_v2/config/vm.rb index 563ed1719..4b35495aa 100644 --- a/plugins/kernel_v2/config/vm.rb +++ b/plugins/kernel_v2/config/vm.rb @@ -307,7 +307,7 @@ module VagrantPlugins # Defaults @base_mac = nil if @base_mac == UNSET_VALUE @boot_timeout = 300 if @boot_timeout == UNSET_VALUE - @box_check_update = nil if @box_check_update == UNSET_VALUE + @box_check_update = true if @box_check_update == UNSET_VALUE @box_download_ca_cert = nil if @box_download_ca_cert == UNSET_VALUE @box_download_checksum = nil if @box_download_checksum == UNSET_VALUE @box_download_checksum_type = nil if @box_download_checksum_type == UNSET_VALUE diff --git a/test/unit/plugins/kernel_v2/config/vm_test.rb b/test/unit/plugins/kernel_v2/config/vm_test.rb index 73f0a85fd..77afcff5d 100644 --- a/test/unit/plugins/kernel_v2/config/vm_test.rb +++ b/test/unit/plugins/kernel_v2/config/vm_test.rb @@ -33,10 +33,10 @@ describe VagrantPlugins::Kernel_V2::VMConfig do end context "#box_check_update" do - it "defaults to nil" do + it "defaults to true" do subject.finalize! - expect(subject.box_check_update).to be_nil + expect(subject.box_check_update).to be_true end end