(POOLER-73) Add spec tests for migrate_vm

Add spect tests for migrate_vm
This commit is contained in:
Glenn Sarti 2017-02-13 20:19:35 -08:00
parent 713e202d68
commit 925071be79

View file

@ -955,6 +955,21 @@ EOT
end
end
describe '#migrate_vm' do
let(:vsphere) { double('vsphere') }
before do
expect(subject).not_to be_nil
end
it 'calls _migrate_vm' do
expect(Thread).to receive(:new).and_yield
expect(subject).to receive(:_migrate_vm).with(vm, pool, vsphere)
subject.migrate_vm(vm, pool, vsphere)
end
end
describe "#get_vm_host_info" do
before do
expect(subject).not_to be_nil