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

[aws|storage] Little improvements to delete_multiple_objects tests

This commit is contained in:
Garret Alfert 2012-01-06 01:34:37 +01:00 committed by Timur Alperovich
parent 564f839e4d
commit 89a7a9fc39

View file

@ -97,13 +97,8 @@ Shindo.tests('AWS::Storage | object requests', ['aws']) do
(object_url =~ /http:\/\/#{Regexp.quote(@directory.identity)}\.s3\.amazonaws\.com\/fog_object/) != nil
end
tests("delete_multiple_objects('#{@directory.identity}', ['fog_object'])").returns({
'DeleteResult' => [
{ 'Deleted' => { 'Key' => 'fog_object' } }
]
}) do
Fog::Storage[:aws].delete_multiple_objects(@directory.identity, ['fog_object'])
Fog::Storage[:aws].delete_multiple_objects(@directory.identity, ['fog_object']).body
tests("delete_multiple_objects('#{@directory.identity}', ['fog_object', 'fog_other_object'])").formats(@multiple_delete_format) do
Fog::Storage[:aws].delete_multiple_objects(@directory.identity, ['fog_object', 'fog_other_object']).body
end
end