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

[aws|storage] Add mock for Fog::Storage::AWS#delete_multiple_objects

This commit is contained in:
Garret Alfert 2012-01-04 22:14:18 +01:00 committed by Timur Alperovich
parent f0e8ae0cff
commit 564f839e4d

View file

@ -102,7 +102,6 @@ Shindo.tests('AWS::Storage | object requests', ['aws']) do
{ 'Deleted' => { 'Key' => 'fog_object' } } { 'Deleted' => { 'Key' => 'fog_object' } }
] ]
}) do }) do
pending if Fog.mocking?
Fog::Storage[:aws].delete_multiple_objects(@directory.identity, ['fog_object']) Fog::Storage[:aws].delete_multiple_objects(@directory.identity, ['fog_object'])
Fog::Storage[:aws].delete_multiple_objects(@directory.identity, ['fog_object']).body Fog::Storage[:aws].delete_multiple_objects(@directory.identity, ['fog_object']).body
end end
@ -148,10 +147,7 @@ Shindo.tests('AWS::Storage | object requests', ['aws']) do
end end
tests("#delete_multiple_objects('fognonbucket', ['fog_non_object'])").raises(Excon::Errors::NotFound) do tests("#delete_multiple_objects('fognonbucket', ['fog_non_object'])").raises(Excon::Errors::NotFound) do
<<<<<<< HEAD
=======
pending if Fog.mocking? pending if Fog.mocking?
>>>>>>> [aws|storage] Add Fog::Storage::AWS#delete_multiple_objects
Fog::Storage[:aws].delete_multiple_objects('fognonbucket', ['fog_non_object']) Fog::Storage[:aws].delete_multiple_objects('fognonbucket', ['fog_non_object'])
end end