Get rid of a pending test
This commit is contained in:
parent
803269f729
commit
c9d9bf679b
|
@ -2,6 +2,7 @@ require File.expand_path("../../base", __FILE__)
|
||||||
require "json"
|
require "json"
|
||||||
require "pathname"
|
require "pathname"
|
||||||
require "tempfile"
|
require "tempfile"
|
||||||
|
require "tmpdir"
|
||||||
|
|
||||||
require "vagrant/util/file_mode"
|
require "vagrant/util/file_mode"
|
||||||
|
|
||||||
|
@ -86,7 +87,13 @@ describe Vagrant::Environment do
|
||||||
end
|
end
|
||||||
|
|
||||||
it "is set to the environmental variable VAGRANT_HOME" do
|
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
|
end
|
||||||
|
|
||||||
it "is set to the DEFAULT_HOME by default" do
|
it "is set to the DEFAULT_HOME by default" do
|
||||||
|
|
Loading…
Reference in New Issue