1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/aws/requests/storage/delete_multiple_objects_tests.rb
2013-12-05 14:16:00 +01:00

12 lines
544 B
Ruby

Shindo.tests('AWS::Storage | delete_multiple_objects', ['aws']) do
@directory = Fog::Storage[:aws].directories.create(:key => 'fogobjecttests-' + Time.now.to_i.to_s(32))
tests("doesn't alter options") do
version_id = {'fog_object' => ['12345']}
options = {:quiet => true, 'versionId' => version_id}
Fog::Storage[:aws].delete_multiple_objects(@directory.identity, ['fog_object'], options)
test(":quiet is unchanged") { options[:quiet] }
test("'versionId' is unchanged") { options['versionId'] == version_id }
end
end