From 1b0a28bd4a50cbbcf56b89b348df1ff56d4169da Mon Sep 17 00:00:00 2001 From: Carlos Rodrigues Date: Thu, 28 Jul 2016 01:09:14 +0100 Subject: [PATCH] One extra smoke test --- test/unit/vagrant/environment_test.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/unit/vagrant/environment_test.rb b/test/unit/vagrant/environment_test.rb index afcaccaf2..29bdbbb5e 100644 --- a/test/unit/vagrant/environment_test.rb +++ b/test/unit/vagrant/environment_test.rb @@ -987,6 +987,16 @@ VF end end end + + it "is set relative to the empty string when there is no valid work directory" do + Dir.mktmpdir("out-of-tree-directory") do |temp_dir| + with_temp_env("VAGRANT_DOTFILE_PATH" => ".vagrant-custom") do + instance = env.create_vagrant_env(cwd: temp_dir) + expect(instance.cwd.to_s).to eq(temp_dir) + expect(instance.local_data_path.to_s).to eq("") + end + end + end end describe "upgrading V1 dotfiles" do