Skip to content

Commit

Permalink
Merge pull request #273 from test-kitchen/pr238
Browse files Browse the repository at this point in the history
Fix #237 - fix `false` for box_check_update
  • Loading branch information
Seth Thomas authored Jan 6, 2017
2 parents 0231526 + 999ca96 commit f9748a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 1 addition & 8 deletions spec/kitchen/driver/vagrant_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion templates/Vagrantfile.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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? %>
Expand Down

0 comments on commit f9748a6

Please sign in to comment.