1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/openstack/models/image/images_tests.rb
2012-04-30 10:34:59 +08:00

14 lines
467 B
Ruby

Shindo.tests("Fog::Image[:openstack] | images", ['openstack']) do
@instance = Fog::Image[:openstack].create_image({:name => "model test image"}).body
tests('success') do
tests('#find_by_id').succeeds do
image = Fog::Image[:openstack].images.find_by_id(@instance['image']['id'])
image.id == @instance['image']['id']
end
tests('#destroy').succeeds do
Fog::Image[:openstack].images.destroy(@instance['image']['id'])
end
end
end