1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/storage/models/files_tests.rb
2011-01-03 11:23:51 -08:00

22 lines
464 B
Ruby

for provider, config in storage_providers
Shindo.tests("#{provider}::Storage | files", [provider.to_s.downcase]) do
params = {
:key => 'fog_files_tests',
:body => lorem_file
}.merge!(config[:files_params] || {})
if !Fog.mocking? || config[:mocked]
@directory = provider.directories.create(:key => 'fogfilestests')
collection_tests(@directory.files, params, config[:mocked])
@directory.destroy
end
end
end