Skip to content

Commit

Permalink
Adjust test to properly mock kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisroberts committed Jul 11, 2024
1 parent 716f76b commit f8ba723
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,10 @@

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
Expand Down

0 comments on commit f8ba723

Please sign in to comment.