mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-06-09 00:32:06 -04:00
Adjust test to properly mock kwargs
This commit is contained in:
parent
716f76b2a6
commit
f8ba723978
1 changed files with 2 additions and 2 deletions
|
|
@ -210,10 +210,10 @@ describe VagrantPlugins::HyperV::Cap::ConfigureDisks do
|
|||
|
||||
it "creates a disk and attaches it to a guest" do
|
||||
expect(machine).to receive(:data_dir).and_return(data_dir)
|
||||
expect(driver).to receive(:create_disk).with(disk_file, disk_config.size, {})
|
||||
expect(driver).to receive(:create_disk).with(disk_file, disk_config.size)
|
||||
expect(driver).to receive(:get_disk).with(disk_file).and_return(disk)
|
||||
|
||||
expect(driver).to receive(:attach_disk).with(disk_file, {})
|
||||
expect(driver).to receive(:attach_disk).with(disk_file)
|
||||
|
||||
subject.create_disk(machine, disk_config)
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue