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:
parent
564f839e4d
commit
89a7a9fc39
1 changed files with 2 additions and 7 deletions
|
@ -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
|
(object_url =~ /http:\/\/#{Regexp.quote(@directory.identity)}\.s3\.amazonaws\.com\/fog_object/) != nil
|
||||||
end
|
end
|
||||||
|
|
||||||
tests("delete_multiple_objects('#{@directory.identity}', ['fog_object'])").returns({
|
tests("delete_multiple_objects('#{@directory.identity}', ['fog_object', 'fog_other_object'])").formats(@multiple_delete_format) do
|
||||||
'DeleteResult' => [
|
Fog::Storage[:aws].delete_multiple_objects(@directory.identity, ['fog_object', 'fog_other_object']).body
|
||||||
{ '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
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue