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
Amos Benari 905c69d424 oVirt: Added tests to work on both real and mock.
Signed-off-by: Ohad Levy <ohadlevy@gmail.com>
2012-02-08 09:36:07 -06:00

13 lines
386 B
Ruby

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