Fixed test case failure

This commit is contained in:
Zhongcheng Lao 2019-06-20 22:09:01 +08:00
parent 2e0c0df6ed
commit 669b7b3709
1 changed files with 1 additions and 1 deletions

View File

@ -538,7 +538,7 @@ EOF
let(:temp_dir) { 'C:\Users\User\AppData\Local\Temp' }
it "should return windows temporary directory" do
allow(Vagrant::Util::PowerShell).to receive(:execute).
allow(Vagrant::Util::PowerShell).to receive(:execute_cmd).
with("(Get-Item Env:TEMP).Value").and_return(temp_dir)
expect(subject.windows_temp).to eql(temp_dir)
end