Fixup disk tests

This commit is contained in:
Brian Cain 2020-01-23 08:36:15 -08:00
parent 8cd04db602
commit 718332b35e
No known key found for this signature in database
GPG Key ID: 9FC4639B2E4510A0
2 changed files with 3 additions and 3 deletions

View File

@ -556,8 +556,8 @@ describe VagrantPlugins::Kernel_V2::VMConfig do
end
it "stores the disks" do
subject.disk(:disk, size: 100)
subject.disk(:disk, size: 1000, primary: false, name: "storage")
subject.disk(:disk, size: 100, primary: true)
subject.disk(:disk, size: 1000, name: "storage")
subject.finalize!
assert_valid

View File

@ -20,7 +20,7 @@ describe Vagrant::Action::Builtin::Disk do
subject = described_class.new(app, env)
expect(app).to receive(:call).with(env).ordered
expect(machine.provider).to receive(:capability).with(:configure_disks, disks)
expect(machine.provider).to receive(:capability).with(:configure_disks, disks).and_return({})
subject.call(env)
end