1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[rackspace] fixing delete image tests

This commit is contained in:
Kyle Rames 2013-04-16 14:22:40 -05:00
parent aa2f1065ba
commit c1a744475e
2 changed files with 3 additions and 3 deletions

View file

@ -56,7 +56,7 @@ Shindo.tests('Fog::Compute[:rackspace] | image requests', ['rackspace']) do
tests('failure') do
tests('#delete_image(0)').raises(Excon::Errors::BadRequest) do
tests('#delete_image(0)').raises(Fog::Compute::Rackspace::NotFound) do
@service.delete_image(Fog::Rackspace::MockData::NOT_FOUND_ID)
end

View file

@ -58,8 +58,8 @@ Shindo.tests('Fog::Compute::RackspaceV2 | image_tests', ['rackspace']) do
end
tests('failure') do
tests('#delete_image').raises(Excon::Errors::BadRequest) do
Fog::Compute[:rackspace].delete_image(Fog::Rackspace::MockData::NOT_FOUND_ID)
tests('#delete_image').raises(Fog::Compute::RackspaceV2::NotFound) do
service.delete_image(Fog::Rackspace::MockData::NOT_FOUND_ID)
end
tests('#get_image').raises(Fog::Compute::RackspaceV2::NotFound) do