Fixup disk tests
This commit is contained in:
parent
8cd04db602
commit
718332b35e
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user