From a8de98f97a3ac07018f7518994204f1be036a875 Mon Sep 17 00:00:00 2001 From: Jeff Bonhag Date: Wed, 3 Jun 2020 11:42:57 -0400 Subject: [PATCH] Default #in_installer? to false This ensures that these tests will pass if the environment has `VAGRANT_INSTALLER_ENV=1` set (e.g. in a local development environment). --- test/unit/vagrant/util/downloader_test.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/unit/vagrant/util/downloader_test.rb b/test/unit/vagrant/util/downloader_test.rb index f62612d0f..24eb59bef 100644 --- a/test/unit/vagrant/util/downloader_test.rb +++ b/test/unit/vagrant/util/downloader_test.rb @@ -19,6 +19,7 @@ describe Vagrant::Util::Downloader do before :each do allow(Vagrant::Util::Subprocess).to receive(:execute).and_return(subprocess_result) + allow(Vagrant).to receive(:in_installer?).and_return(false) end describe "#download!" do