1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/rackspace/models/compute_v2/images_tests.rb
Eugene Howe cfc1d58847 [rackspace] compute_v2 and blockstorage are mocked
[ecloud] fixed a test and removed connection deprecation notices
2013-01-11 21:21:18 -05:00

21 lines
429 B
Ruby

service = Fog::Compute::RackspaceV2.new
Shindo.tests('Fog::Compute::RackspaceV2 | images', ['rackspace']) do
image_id = nil
tests("success") do
tests("#all").succeeds do
images = service.images.all
image_id = images.first.id
end
tests("#get").succeeds do
service.images.get(image_id)
end
end
tests("failure").returns(nil) do
service.images.get('some_random_identity')
end
end