1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/compute/requests/voxel/image_tests.rb
2011-02-23 15:38:42 -08:00

24 lines
520 B
Ruby

Shindo.tests('Voxel::Compute | image requests', ['voxel']) do
@image_format = {
:id => Integer,
:name => String
}
tests('success') do
tests('#images_list').formats([ @image_format ]) do
Voxel[:compute].images_list
end
tests('#images_list(1)').formats([ @image_format ]) do
Voxel[:compute].images_list(1)
end
end
tests('failure') do
tests('#images_list(0)').raises(Fog::Voxel::Compute::NotFound) do
Voxel[:compute].images_list(0)
end
end
end