1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[vcloud_director] fix models vms_test so is pending on empty environment

This commit is contained in:
Dan Abel 2013-11-11 17:13:41 +00:00
parent ea63eaa1eb
commit 8837189b7a

View file

@ -4,7 +4,8 @@ Shindo.tests("Compute::VcloudDirector | vms", ['vclouddirector', 'all']) do
pending if Fog.mocking?
vapp = vapps.detect {|v| v.vms.size >= 1}
tests("#There is more than one vm").returns(true){ vapp.vms.size >= 1 }
# we can't run these tests if there is no vapps with a vm in them
pending unless vapp
vms = vapp.vms
vm = vms.first