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/compute_tests.rb
2012-02-08 09:36:06 -06:00

22 lines
642 B
Ruby

Shindo.tests('Fog::Compute[:ovirt]', ['ovirt']) do
compute = Fog::Compute[:ovirt]
tests("Compute attributes") do
%w{ client }.each do |attr|
test("it should respond to #{attr}") { compute.respond_to? attr }
end
end
tests("Compute collections") do
%w{ servers templates clusters }.each do |collection|
test("it should respond to #{collection}") { compute.respond_to? collection }
end
end
tests("Compute requests") do
%w{ datacenters storage_domains vm_action destroy_vm }.each do |collection|
test("it should respond to #{collection}") { compute.respond_to? collection }
end
end
end