From ea4e60247d0bf07c826e258b9a4dfb95de6bc9cf Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Mon, 18 Jun 2018 09:53:22 -0700 Subject: [PATCH] Check for module_path entry instead of custom environment variable --- test/unit/plugins/providers/hyperv/driver_test.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/unit/plugins/providers/hyperv/driver_test.rb b/test/unit/plugins/providers/hyperv/driver_test.rb index fa99484f0..585337600 100644 --- a/test/unit/plugins/providers/hyperv/driver_test.rb +++ b/test/unit/plugins/providers/hyperv/driver_test.rb @@ -144,8 +144,7 @@ describe VagrantPlugins::HyperV::Driver do it "should automatically include module path" do expect(Vagrant::Util::PowerShell).to receive(:execute) do |path, *args| opts = args.detect{|i| i.is_a?(Hash)} - expect(opts[:env]).not_to be_nil - expect(opts[:env]["PSModulePath"]).to include("$env:PSModulePath+") + expect(opts[:module_path]).not_to be_nil end subject.send(:execute_powershell, "path", {}) end