From 1cdd69bc9178287b762c2b68d586035965fa568c Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 19 Aug 2012 19:17:19 -0700 Subject: [PATCH] All tests passing --- test/unit/vagrant/environment_test.rb | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/test/unit/vagrant/environment_test.rb b/test/unit/vagrant/environment_test.rb index 4a79ced92..9a7c227af 100644 --- a/test/unit/vagrant/environment_test.rb +++ b/test/unit/vagrant/environment_test.rb @@ -8,8 +8,18 @@ require "support/tempdir" describe Vagrant::Environment do include_context "unit" - let(:home_path) { Pathname.new(Tempdir.new.path) } - let(:instance) { described_class.new(:home_path => home_path) } + let(:env) do + isolated_environment.tap do |e| + e.box2("base", :virtualbox) + e.vagrantfile <<-VF + Vagrant.configure("1") do |config| + config.vm.box = "base" + end + VF + end + end + + let(:instance) { env.create_vagrant_env } describe "current working directory" do it "is the cwd by default" do @@ -102,6 +112,7 @@ describe Vagrant::Environment do environment = isolated_environment do |env| env.vagrantfile(<<-VF) Vagrant::Config.run do |config| + config.vm.box = "base" config.vm.define :foo config.vm.define :bar, :primary => true end