Skip to content

Commit

Permalink
Shorten line length of new tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimball Johnson committed Feb 18, 2016
1 parent c6a5d49 commit b85ccf4
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions spec/kitchen/driver/vagrant_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -986,18 +986,24 @@ def run_command(_cmd, options = {})
)
end

it "sets vm.box_download_insecure to false if :box_download_insecure is false" do
it "sets vm.box_download_insecure to false
if :box_download_insecure is false" do

config[:box_download_insecure] = false
cmd

expect(vagrantfile).to match(regexify(%{c.vm.box_download_insecure = "false"}))
expect(
vagrantfile).to match(regexify(%{c.vm.box_download_insecure = "false"})
)
end

it "sets vm.box_download_insecure if :box_download_insecure is set" do
config[:box_download_insecure] = "um"
cmd

expect(vagrantfile).to match(regexify(%{c.vm.box_download_insecure = "um"}))
expect(
vagrantfile).to match(regexify(%{c.vm.box_download_insecure = "um"})
)
end

it "sets no vm.communicator if missing" do
Expand Down

0 comments on commit b85ccf4

Please sign in to comment.