1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/libvirt/models/compute/volumes_tests.rb

15 lines
540 B
Ruby
Raw Normal View History

2012-04-04 11:32:09 -04:00
Shindo.tests('Fog::Compute[:libvirt] | volumes collection', ['libvirt']) do
volumes = Fog::Compute[:libvirt].volumes
tests('The volumes collection') do
test('should not be empty') { not volumes.empty? }
test('should be a kind of Fog::Compute::Libvirt::Volumes') { volumes.kind_of? Fog::Compute::Libvirt::Volumes }
tests('should be able to reload itself').succeeds { volumes.reload }
tests('should be able to get a model') do
tests('by instance uuid').succeeds { volumes.get volumes.first.id }
end
end
end