mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
13 lines
495 B
Ruby
13 lines
495 B
Ruby
Shindo.tests('Fog::Compute[:libvirt] | networks collection', ['libvirt']) do
|
|
|
|
networks = Fog::Compute[:libvirt].networks
|
|
|
|
tests('The networks collection') do
|
|
test('should be a kind of Fog::Compute::Libvirt::Networks') { networks.kind_of? Fog::Compute::Libvirt::Networks }
|
|
tests('should be able to reload itself').succeeds { networks.reload }
|
|
tests('should be able to get a model') do
|
|
tests('by instance id').succeeds { networks.get networks.first.uuid }
|
|
end
|
|
end
|
|
|
|
end
|