From cd6c60775c37fa5536f4f25fa8a07c2b35dd9e6e Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 27 Jun 2012 22:21:56 -0700 Subject: [PATCH] Use the V1 box helper for a test. --- test/unit/vagrant/box_collection2_test.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/unit/vagrant/box_collection2_test.rb b/test/unit/vagrant/box_collection2_test.rb index 8715efda1..d0954a9bc 100644 --- a/test/unit/vagrant/box_collection2_test.rb +++ b/test/unit/vagrant/box_collection2_test.rb @@ -55,9 +55,7 @@ describe Vagrant::BoxCollection2 do it "should throw an exception if it is a v1 box" do # Create a V1 box - box_dir = environment.boxes_dir.join("foo") - box_dir.mkpath - box_dir.join("box.ovf").open("w") { |f| f.write("") } + environment.box1("foo") # Test! expect { instance.find("foo", :virtualbox) }.