From c9d9bf679b8f3b688d7ed2e0d5ffa6e396cbeb45 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 26 Feb 2013 11:30:51 -0800 Subject: [PATCH] Get rid of a pending test --- test/unit/vagrant/environment_test.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/unit/vagrant/environment_test.rb b/test/unit/vagrant/environment_test.rb index 252dc04b3..cb3d326b0 100644 --- a/test/unit/vagrant/environment_test.rb +++ b/test/unit/vagrant/environment_test.rb @@ -2,6 +2,7 @@ require File.expand_path("../../base", __FILE__) require "json" require "pathname" require "tempfile" +require "tmpdir" require "vagrant/util/file_mode" @@ -86,7 +87,13 @@ describe Vagrant::Environment do end it "is set to the environmental variable VAGRANT_HOME" do - pending "A good temporary ENV thing" + Dir.mktmpdir do |dir| + instance = with_temp_env("VAGRANT_HOME" => dir) do + described_class.new + end + + instance.home_path.should == Pathname.new(dir) + end end it "is set to the DEFAULT_HOME by default" do