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

[vcloud_director] tests become pending not failing on absense of testable resources

This commit is contained in:
Dan Abel 2013-11-13 12:29:44 +00:00
parent 9206b64374
commit f284ba6d19

View file

@ -2,7 +2,9 @@ require File.expand_path(File.join(File.dirname(__FILE__), 'helper'))
Shindo.tests("Compute::VcloudDirector | vapps", ['vclouddirector', 'all']) do
pending if Fog.mocking?
tests("#There is more than one vapp").returns(true){ vdc.vapps.size >= 1 }
# unless there is atleast one vapp we cannot run these tests
pending if vdc.vapps.empty?
vapps = vdc.vapps
vapp = vapps.first