Created
January 5, 2017 17:01
-
-
Save cheeseplus/6541af7e6e6f678d0c5019d41f97751f to your computer and use it in GitHub Desktop.
spec/kitchen/driver/vagrant_spec.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/spec/kitchen/driver/vagrant_spec.rb | |
+++ b/spec/kitchen/driver/vagrant_spec.rb | |
@@ -1081,14 +1081,7 @@ describe Kitchen::Driver::Vagrant do | |
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 dd904c5..c701e6c 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 %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment