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

14 lines
386 B
Ruby
Raw Normal View History

Shindo.tests('Fog::Compute[:ovirt] | datacenters request', ['ovirt']) do
compute = Fog::Compute[:ovirt]
tests("When listing all datacenters") do
response = compute.datacenters
tests("The response data format ...") do
test("it should be a kind of Array") { response.kind_of? Array }
test("be a kind of Hash") { response.first.kind_of? Hash }
end
end
end