update unit test for change_host_name to fix failures introduced by changes to the module
This commit is contained in:
parent
2dfe520eb8
commit
4e8062625c
|
@ -34,6 +34,9 @@ describe "VagrantPlugins::GuestWindows::Cap::ChangeHostName" do
|
||||||
'if (!([System.Net.Dns]::GetHostName() -eq \'newhostname\')) { exit 0 } exit 1',
|
'if (!([System.Net.Dns]::GetHostName() -eq \'newhostname\')) { exit 0 } exit 1',
|
||||||
exit_code: 0)
|
exit_code: 0)
|
||||||
communicator.stub_command(rename_script, exit_code: 0)
|
communicator.stub_command(rename_script, exit_code: 0)
|
||||||
|
allow(machine).to receive(:guest)
|
||||||
|
allow(machine.guest).to receive(:capability)
|
||||||
|
allow(machine.guest).to receive(:capability?)
|
||||||
described_class.change_host_name_and_wait(machine, 'newhostname')
|
described_class.change_host_name_and_wait(machine, 'newhostname')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue